/* Custom CSS for Kaptebee School Projects */

:root {
    --primary-green: #2E7D32;
    --light-green: #4CAF50;
    --accent-green: #81C784;
    --dark-green: #1B5E20;
    --white: #ffffff;
    --light-gray: #f8f9fa;
    --dark-gray: #6c757d;
    --text-dark: #212529;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 8px 25px rgba(0, 0, 0, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
}

/* Sidebar Styles */
.sidebar {
    position: fixed;
    top: 0;
    left: -280px;
    width: 280px;
    height: 100vh;
    background: linear-gradient(135deg, var(--primary-green), var(--white));
    z-index: 1050;
    transition: left 0.3s ease;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
}

.sidebar.active {
    left: 0;
}

.sidebar-header {
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: flex-end;
}

.close-btn {
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.close-btn:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.sidebar-content {
    padding: 20px 0;
}

.sidebar .nav-link {
    color: var(--white);
    padding: 15px 30px;
    font-weight: 500;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.sidebar .nav-link:hover,
.sidebar .nav-link.active {
    background-color: rgba(255, 255, 255, 0.1);
    border-left-color: var(--accent-green);
    color: var(--white);
    padding-left: 35px;
}

/* Navbar Styles */
.navbar {
    background: linear-gradient(135deg, var(--primary-green), var(--light-green));
    box-shadow: var(--shadow);
    padding: 1rem 0;
}

.navbar-brand {
    display: flex;
    align-items: center;
    color: var(--white) !important;
    font-weight: bold;
    font-size: 1.5rem;
}

.navbar-logo {
    width: 40px;
    height: 40px;
    margin-right: 10px;
    border-radius: 50%;
    object-fit: cover;
}

.navbar-nav .nav-link {
    color: var(--white) !important;
    font-weight: 500;
    margin: 0 10px;
    padding: 8px 15px !important;
    border-radius: 25px;
    transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.navbar-toggler {
    border: none;
    padding: 0;
    background: none;
}

.navbar-toggler:focus {
    box-shadow: none;
}

/* Projects Section */
/* Student Profiles Section */
.student-profiles {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
    overflow: hidden;
}

.student-profiles::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 200px;
    height: 200px;
    background: linear-gradient(45deg, #28a745, #ffffff);
    opacity: 0.1;
    border-radius: 50%;
    transform: translate(50%, -50%);
}

.student-profiles .section-title {
    text-align: center;
    color: #28a745;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    position: relative;
}

.student-profiles .section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #28a745, #ffffff);
    border-radius: 2px;
}

.profiles-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.profile-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1;
    min-width: 120px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.profile-item:hover {
    transform: translateY(-8px);
}

.profile-circle {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(45deg, #28a745, #ffffff, #28a745);
    padding: 4px;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.profile-circle::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 120%;
    height: 120%;
    background: conic-gradient(from 0deg, #28a745, #ffffff, #28a745, #ffffff, #28a745);
    transform: translate(-50%, -50%) rotate(0deg);
    transition: transform 0.3s ease;
    z-index: 1;
}

.profile-item:hover .profile-circle::before {
    transform: translate(-50%, -50%) rotate(180deg);
}

.profile-img {
    width: 92px;
    height: 92px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #ffffff;
    position: relative;
    z-index: 2;
    background: #f8f9fa;
    transition: all 0.3s ease;
}

.profile-item:hover .profile-img {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.3);
}

.profile-info {
    text-align: center;
}

.profile-info h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #28a745;
    margin: 0.5rem 0 0.25rem 0;
    transition: color 0.3s ease;
}

.profile-info p {
    font-size: 0.85rem;
    color: #6c757d;
    margin: 0;
    font-weight: 500;
    transition: color 0.3s ease;
}

.profile-item:hover .profile-info h4 {
    color: #1e7e34;
}

.profile-item:hover .profile-info p {
    color: #495057;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .profiles-row {
        gap: 1.5rem;
    }
    
    .profile-circle {
        width: 90px;
        height: 90px;
    }
    
    .profile-img {
        width: 82px;
        height: 82px;
    }
}

@media (max-width: 992px) {
    .profiles-row {
        justify-content: center;
        gap: 2rem;
    }
    
    .profile-item {
        flex: 0 0 auto;
        margin: 0 1rem;
    }
}

@media (max-width: 768px) {
    .student-profiles {
        padding: 60px 0;
    }
    
    .student-profiles .section-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }
    
    .profiles-row {
        gap: 1.5rem;
    }
    
    .profile-circle {
        width: 80px;
        height: 80px;
    }
    
    .profile-img {
        width: 72px;
        height: 72px;
    }
    
    .profile-info h4 {
        font-size: 0.9rem;
    }
    
    .profile-info p {
        font-size: 0.8rem;
    }
}

@media (max-width: 576px) {
    .student-profiles {
        padding: 40px 0;
    }
    
    .student-profiles .section-title {
        font-size: 1.8rem;
    }
    
    .profiles-row {
        flex-direction: column;
        gap: 2rem;
        align-items: center;
    }
    
    .profile-item {
        min-width: auto;
    }
    
    .profile-circle {
        width: 100px;
        height: 100px;
    }
    
    .profile-img {
        width: 92px;
        height: 92px;
    }
    
    .profile-info h4 {
        font-size: 1rem;
    }
    
    .profile-info p {
        font-size: 0.85rem;
    }
}

/* Video Section Styles */
.video-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
    overflow: hidden;
}

.video-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(40, 167, 69, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(40, 167, 69, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.video-section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
}

.video-section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #28a745, #20c997);
    border-radius: 2px;
}

.video-container {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.video-frame {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    border-radius: 20px;
    overflow: hidden;
    background: #000;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(255, 255, 255, 0.1);
}

/* Animated Border */
.video-frame::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    background: linear-gradient(
        45deg,
        #28a745,
        #20c997,
        #17a2b8,
        #28a745,
        #20c997,
        #17a2b8
    );
    background-size: 400% 400%;
    border-radius: 23px;
    z-index: -1;
    animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Pulsing glow effect */
.video-frame::after {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    background: linear-gradient(45deg, #28a745, #20c997);
    border-radius: 25px;
    z-index: -2;
    opacity: 0;
    animation: pulse 2s ease-in-out infinite alternate;
}

@keyframes pulse {
    0% {
        opacity: 0;
        transform: scale(1);
    }
    100% {
        opacity: 0.3;
        transform: scale(1.02);
    }
}

.video-frame iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 17px;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 17px;
}

.video-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.play-button {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #28a745, #20c997);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    transition: all 0.3s ease;
    box-shadow: 
        0 10px 30px rgba(40, 167, 69, 0.4),
        0 0 0 0 rgba(40, 167, 69, 0.7);
    animation: playButtonPulse 2s infinite;
}

@keyframes playButtonPulse {
    0% {
        box-shadow: 
            0 10px 30px rgba(40, 167, 69, 0.4),
            0 0 0 0 rgba(40, 167, 69, 0.7);
    }
    70% {
        box-shadow: 
            0 10px 30px rgba(40, 167, 69, 0.4),
            0 0 0 20px rgba(40, 167, 69, 0);
    }
    100% {
        box-shadow: 
            0 10px 30px rgba(40, 167, 69, 0.4),
            0 0 0 0 rgba(40, 167, 69, 0);
    }
}

.play-button:hover {
    transform: scale(1.1);
    background: linear-gradient(135deg, #218838, #1eb887);
}

.play-button i {
    margin-left: 4px; /* Slight offset for play icon visual balance */
}

/* Responsive Design */
@media (max-width: 768px) {
    .video-section-title {
        font-size: 2rem;
    }
    
    .play-button {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .video-frame {
        border-radius: 15px;
    }
    
    .video-frame::before {
        border-radius: 18px;
    }
    
    .video-frame iframe {
        border-radius: 12px;
    }
    
    .video-overlay {
        border-radius: 12px;
    }
}

/* Projects Hero Section */
.projects-hero {
    background: linear-gradient(135deg, var(--primary-green), var(--light-green));
    color: var(--white);
    padding: 80px 0 60px;
    text-align: center;
}

.hero-title {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 1rem;
    opacity: 0;
    transform: translateY(30px);
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    opacity: 0;
    transform: translateY(30px);
}

.hero-description {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
    opacity: 0;
    transform: translateY(30px);
}

/* Projects Section */
.projects-section {
    background-color: var(--light-gray);
    min-height: 100vh;
}

.project-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    height: 100%;
    opacity: 0;
    transform: translateY(50px);
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.project-image {
    position: relative;
    overflow: hidden;
    height: 250px;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.1);
}

.project-overlay {
    position: absolute;
    top: 15px;
    right: 15px;
}

.project-category {
    background: var(--primary-green);
    color: var(--white);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.project-content {
    padding: 25px;
}

.project-title {
    color: var(--primary-green);
    font-weight: bold;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.project-description {
    color: var(--dark-gray);
    margin-bottom: 20px;
    line-height: 1.6;
}

.project-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

.project-author,
.project-date {
    font-size: 0.9rem;
    color: var(--dark-gray);
    display: flex;
    align-items: center;
    gap: 8px;
}

.project-author i,
.project-date i {
    color: var(--primary-green);
    width: 16px;
}

.project-actions {
    margin-top: auto;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-green), var(--light-green));
    border: none;
    border-radius: 25px;
    padding: 8px 20px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--dark-green), var(--primary-green));
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(76, 175, 80, 0.4);
}

/* Modal Styles */
.modal-content {
    border: none;
    border-radius: 15px;
    overflow: hidden;
}

.modal-header {
    background: linear-gradient(135deg, var(--primary-green), var(--light-green));
    color: var(--white);
    border-bottom: none;
}

.modal-title {
    font-weight: bold;
}

.btn-close {
    filter: invert(1);
}

.modal-body {
    padding: 30px;
}

.modal-body img {
    border-radius: 10px;
}

/* Footer Styles */
.footer {
    background: linear-gradient(135deg, var(--dark-green), var(--primary-green));
    color: var(--white);
    padding: 50px 0 20px;
    margin-top: 50px;
}

.footer-brand {
    margin-bottom: 30px;
}

.footer-logo {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
}

.footer h5,
.footer h6 {
    color: var(--white);
    margin-bottom: 20px;
    font-weight: bold;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent-green);
}

.footer-contact p {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-contact i {
    color: var(--accent-green);
    width: 20px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--accent-green);
    color: var(--white);
    transform: translateY(-3px);
}

.footer-divider {
    border-color: rgba(255, 255, 255, 0.2);
    margin: 30px 0 20px;
}

.footer-copyright,
.footer-credits {
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.3rem;
    }
    
    .project-meta {
        flex-direction: column;
    }
    
    .social-links {
        justify-content: center;
        margin-top: 30px;
    }
    
    .footer .text-md-end {
        text-align: center !important;
        margin-top: 10px;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .project-content {
        padding: 20px;
    }
    
    .navbar-brand {
        font-size: 1.3rem;
    }
    
    .navbar-logo {
        width: 35px;
        height: 35px;
    }
}

/* Overlay for sidebar */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1040;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Animation classes for GSAP */
.animate-in {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

.stagger-item {
    opacity: 0;
    transform: translateY(30px);
}

/* style.css */
body {
    background: linear-gradient(135deg, var(--light-gray), var(--white));
    min-height: 100vh;
    font-family: 'Arial', sans-serif;
}

.profile-container {
    position: relative;
    width: 200px;
    height: 200px;
    margin: 0 auto;
}

.profile-border {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    padding: 8px;
    background: conic-gradient(
        from 0deg,
        #00ff88,
        #00cc6a,
        #00ff88,
        #4dffa6,
        #00ff88,
        #66ffb3,
        #00ff88,
        #33ff99,
        #00ff88
    );
    animation: rotate 3s linear infinite;
    box-shadow: 
        0 0 20px rgba(0, 255, 136, 0.5),
        0 0 40px rgba(0, 255, 136, 0.3),
        0 0 60px rgba(0, 255, 136, 0.1);
}

.profile-border::before {
    content: '';
    position: absolute;
    top: 4px;
    left: 4px;
    right: 4px;
    bottom: 4px;
    border-radius: 50%;
    background: conic-gradient(
        from 180deg,
        #00ff88,
        #22ff99,
        #44ffaa,
        #66ffbb,
        #88ffcc,
        #aaffdd,
        #ccffee,
        #00ff88
    );
    z-index: 1;
}

.profile-border::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    right: 2px;
    bottom: 2px;
    border-radius: 50%;
    background: linear-gradient(
        45deg,
        #00ff88,
        #33ff99,
        #66ffaa,
        #99ffbb,
        #00ff88
    );
    z-index: 2;
    animation: pulse 2s ease-in-out infinite alternate;
}

/* ICT Club teacher name css */
.club-heading {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 80px;
}

.club-name {
    color: #08b837;
}

.teacher-title {
    color: #000;
}

.profile-image {
    position: absolute;
    top: 12px;
    left: 12px;
    width: calc(100% - 24px);
    height: calc(100% - 24px);
    border-radius: 50%;
    overflow: hidden;
    z-index: 3;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.3);
}

.profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.profile-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #2a2a2a, #3a3a3a);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #00ff88;
    font-size: 24px;
    font-weight: bold;
}

.typing-container {
    text-align: center;
    margin-top: 30px;
    color: #fff;
}

.name-main {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 10px;
    color: #00ff88;
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
}

.name-subtitle {
    font-size: 1.5rem;
    color: #cccccc;
    margin-bottom: 5px;
}

.typing-cursor {
    display: inline-block;
    width: 3px;
    height: 1em;
    background-color: #00ff88;
    margin-left: 2px;
    animation: blink 1s infinite;
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes pulse {
    0% { 
        box-shadow: 0 0 30px rgba(0, 255, 136, 0.8);
        filter: brightness(1);
    }
    100% { 
        box-shadow: 0 0 50px rgba(0, 255, 136, 1);
        filter: brightness(1.2);
    }
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.glow-effect {
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 255, 136, 0.1) 0%, transparent 70%);
    z-index: -1;
    animation: glow-pulse 4s ease-in-out infinite;
}

@keyframes glow-pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.8; }
}