/* OHA Infotech - Layout & Navigation */
/* Header, Navigation, Hero Section, and Basic Layout Components */

/* Header - Windows 11 Glass Style */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(243, 242, 251, 0.6);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: var(--shadow-light);
    z-index: 1000;
    transition: var(--transition);
}

.header.scrolled {
    background: rgba(243, 242, 251, 0.8);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    box-shadow: var(--shadow-elevated);
}

.navbar {
    padding: 1rem 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.nav-logo h2 {
    margin: 0;
    display: none; /* Hide text, we'll use the visual logo */
}

.nav-logo a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: inherit;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
    position: relative;
    background: transparent;
}

.nav-link:hover {
    color: var(--primary-color);
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: var(--shadow-light);
}

.nav-link.active {
    background: rgba(0, 120, 212, 0.1);
    color: var(--primary-color);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: var(--text-primary);
    margin: 3px 0;
    transition: var(--transition);
}

/* Authentication Styles - Windows 11 Glass Design */
.nav-auth {
    display: flex;
    align-items: center;
}

.nav-auth-buttons {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.auth-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-family: var(--font-primary);
    font-weight: 500;
    font-size: 0.9rem;
    line-height: 1.2;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
    min-height: 36px;
    box-shadow: var(--shadow-light);
}

.login-btn {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.login-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-elevated);
}

.register-btn {
    background: linear-gradient(135deg, 
        rgba(0, 120, 212, 0.8) 0%, 
        rgba(0, 120, 212, 0.7) 100%);
    color: var(--text-on-primary);
    border: 1px solid rgba(255, 255, 255, 0.3);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.register-btn:hover {
    background: linear-gradient(135deg, 
        rgba(0, 120, 212, 0.9) 0%, 
        rgba(16, 110, 190, 0.8) 100%);
    color: var(--text-on-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-elevated);
}

.nav-user-menu {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.user-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: var(--transition);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.user-link:hover {
    background: rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-light);
}

.logout-form {
    display: inline-flex;
    margin: 0;
}

.logout-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    background: rgba(216, 59, 1, 0.8);
    color: var(--text-on-primary);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: 0.9rem;
    transition: var(--transition);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    width: 36px;
    height: 36px;
}

.logout-btn:hover {
    background: rgba(216, 59, 1, 0.9);
    color: var(--text-on-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-light);
}

/* Hero Section - Windows 11 Glass Design */
.hero {
    background: transparent;
    color: white;
    padding: 8rem 0 4rem;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--border-radius-large);
    padding: 3rem;
    box-shadow: var(--shadow-glass);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.highlight {
    background: linear-gradient(45deg, #00bcf2, #8764b8, #ffb900);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 3s ease-in-out infinite;
}

@keyframes gradientShift {
    0%, 100% { filter: hue-rotate(0deg); }
    50% { filter: hue-rotate(20deg); }
}

.hero-description {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Hero Auth Section Styles */
.hero-auth-section {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    text-align: left;
}

.auth-text {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    margin-bottom: 1rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.auth-buttons {
    display: flex;
    gap: 1rem;
    justify-content: left;
    flex-wrap: wrap;
}

/* Floating Tech Cards */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.floating-cards {
    position: relative;
    width: 450px;
    height: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tech-card {
    position: absolute;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 15px;
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    width: 80px;
    height: 80px;
    transition: all 0.4s ease;
    animation: circularGlow 12s ease-in-out infinite;
    opacity: 0.6;
    transform-origin: center;
}

.tech-card:hover {
    transform: scale(1.2) !important;
    background: rgba(0, 120, 212, 0.3);
    border-color: var(--primary-color);
    box-shadow: 0 8px 25px rgba(0, 120, 212, 0.4);
    opacity: 1;
    z-index: 10;
}

/* Perfect circular arrangement using mathematical positioning */
/* 12 cards arranged in a perfect circle with 180px radius */
.tech-card:nth-child(1) {
    /* 0 degrees - Top */
    top: calc(50% - 180px - 40px);
    left: calc(50% - 40px);
    animation-delay: 0s;
}

.tech-card:nth-child(2) {
    /* 30 degrees */
    top: calc(50% - 155.88px - 40px);
    left: calc(50% + 90px - 40px);
    animation-delay: 1s;
}

.tech-card:nth-child(3) {
    /* 60 degrees */
    top: calc(50% - 90px - 40px);
    left: calc(50% + 155.88px - 40px);
    animation-delay: 2s;
}

.tech-card:nth-child(4) {
    /* 90 degrees - Right */
    top: calc(50% - 40px);
    left: calc(50% + 180px - 40px);
    animation-delay: 3s;
}

.tech-card:nth-child(5) {
    /* 120 degrees */
    top: calc(50% + 90px - 40px);
    left: calc(50% + 155.88px - 40px);
    animation-delay: 4s;
}

.tech-card:nth-child(6) {
    /* 150 degrees */
    top: calc(50% + 155.88px - 40px);
    left: calc(50% + 90px - 40px);
    animation-delay: 5s;
}

.tech-card:nth-child(7) {
    /* 180 degrees - Bottom */
    top: calc(50% + 180px - 40px);
    left: calc(50% - 40px);
    animation-delay: 6s;
}

.tech-card:nth-child(8) {
    /* 210 degrees */
    top: calc(50% + 155.88px - 40px);
    left: calc(50% - 90px - 40px);
    animation-delay: 7s;
}

.tech-card:nth-child(9) {
    /* 240 degrees */
    top: calc(50% + 90px - 40px);
    left: calc(50% - 155.88px - 40px);
    animation-delay: 8s;
}

.tech-card:nth-child(10) {
    /* 270 degrees - Left */
    top: calc(50% - 40px);
    left: calc(50% - 180px - 40px);
    animation-delay: 9s;
}

.tech-card:nth-child(11) {
    /* 300 degrees */
    top: calc(50% - 90px - 40px);
    left: calc(50% - 155.88px - 40px);
    animation-delay: 10s;
}

.tech-card:nth-child(12) {
    /* 330 degrees */
    top: calc(50% - 155.88px - 40px);
    left: calc(50% - 90px - 40px);
    animation-delay: 11s;
}

.tech-card i {
    font-size: 1.8rem;
    color: var(--text-light);
    margin-bottom: 0.25rem;
    transition: all 0.4s ease;
    text-shadow: 0 0 10px transparent;
}

.tech-card span {
    font-size: 0.7rem;
    font-weight: 600;
    text-align: center;
    line-height: 1.2;
    color: var(--text-light);
    transition: all 0.4s ease;
    opacity: 0.8;
}

/* Circular Sequential Glow Animation */
@keyframes circularGlow {
    0%, 90%, 100% { 
        opacity: 0.6;
        transform: scale(1);
        background: rgba(255, 255, 255, 0.08);
        border-color: rgba(255, 255, 255, 0.15);
        box-shadow: none;
    }
    
    8.33% { 
        opacity: 1;
        transform: scale(1.15);
        background: linear-gradient(135deg, 
            rgba(0, 120, 212, 0.3) 0%, 
            rgba(0, 120, 212, 0.2) 100%);
        border-color: var(--primary-color);
        box-shadow: 
            0 0 20px rgba(0, 120, 212, 0.6),
            0 0 40px rgba(0, 120, 212, 0.3),
            0 5px 15px rgba(0, 0, 0, 0.2);
    }
    
    16.66% { 
        opacity: 0.8;
        transform: scale(1.05);
        background: rgba(0, 120, 212, 0.15);
        border-color: rgba(0, 120, 212, 0.5);
        box-shadow: 0 0 10px rgba(0, 120, 212, 0.3);
    }
}

/* Icon glow effect during activation */
.tech-card i {
    animation: iconGlow 12s ease-in-out infinite;
}

@keyframes iconGlow {
    0%, 90%, 100% { 
        color: var(--text-light);
        text-shadow: none;
        transform: scale(1);
    }
    
    8.33% { 
        color: #ffffff;
        text-shadow: 
            0 0 10px rgba(0, 120, 212, 0.8),
            0 0 20px rgba(0, 120, 212, 0.5);
        transform: scale(1.1);
    }
    
    16.66% { 
        color: var(--primary-color);
        text-shadow: 0 0 5px rgba(0, 120, 212, 0.4);
        transform: scale(1.05);
    }
}

/* Text glow effect during activation */
.tech-card span {
    animation: textGlow 12s ease-in-out infinite;
}

@keyframes textGlow {
    0%, 90%, 100% { 
        color: var(--text-light);
        opacity: 0.8;
        text-shadow: none;
    }
    
    8.33% { 
        color: #ffffff;
        opacity: 1;
        text-shadow: 0 0 8px rgba(255, 255, 255, 0.6);
    }
    
    16.66% { 
        color: var(--text-primary);
        opacity: 0.9;
        text-shadow: none;
    }
}

/* Add staggered delay for each tech card's icon and text */
.tech-card:nth-child(1) i, .tech-card:nth-child(1) span { animation-delay: 0s; }
.tech-card:nth-child(2) i, .tech-card:nth-child(2) span { animation-delay: 1s; }
.tech-card:nth-child(3) i, .tech-card:nth-child(3) span { animation-delay: 2s; }
.tech-card:nth-child(4) i, .tech-card:nth-child(4) span { animation-delay: 3s; }
.tech-card:nth-child(5) i, .tech-card:nth-child(5) span { animation-delay: 4s; }
.tech-card:nth-child(6) i, .tech-card:nth-child(6) span { animation-delay: 5s; }
.tech-card:nth-child(7) i, .tech-card:nth-child(7) span { animation-delay: 6s; }
.tech-card:nth-child(8) i, .tech-card:nth-child(8) span { animation-delay: 7s; }
.tech-card:nth-child(9) i, .tech-card:nth-child(9) span { animation-delay: 8s; }
.tech-card:nth-child(10) i, .tech-card:nth-child(10) span { animation-delay: 9s; }
.tech-card:nth-child(11) i, .tech-card:nth-child(11) span { animation-delay: 10s; }
.tech-card:nth-child(12) i, .tech-card:nth-child(12) span { animation-delay: 11s; }

/* OHA Infotech Logo Styles */
/* OHA Infotech Circuit Brain Logo */
.oha-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    position: relative;
}

.logo-icon {
    width: 48px;
    height: 48px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50px;
    background: linear-gradient(135deg, 
        #1a237e 0%,     /* Deep navy blue */
        #3949ab 25%,    /* Medium blue */
        #00b4d8 50%,    /* Cyan blue */
        #0077b6 75%,    /* Ocean blue */
        #1a237e 100%    /* Back to navy */
    );
    box-shadow: 
        0 4px 20px rgba(26, 35, 126, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    overflow: hidden;
    transition: all 0.3s ease;
}

.logo-icon:hover {
    transform: scale(1.05);
    box-shadow: 
        0 6px 25px rgba(26, 35, 126, 0.4),
        0 0 30px rgba(0, 180, 216, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* Logo text */
.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
    position: relative;
}

.logo-company {
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0;
    background: linear-gradient(135deg, 
        #1a237e 0%,
        #3949ab 30%,
        #00b4d8 60%,
        #0077b6 100%
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    letter-spacing: 0.5px;
    background-size: 200% 100%;
    animation: textShimmer 5s ease-in-out infinite;
}

.logo-company .oha {
    color: #1a237e;
    -webkit-text-fill-color: #1a237e;
}

.logo-company .infotech {
    background: linear-gradient(135deg, #00b4d8, #0077b6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-tagline {
    font-size: 0.7rem;
    font-weight: 500;
    color: #00073a;
    margin: 0;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    opacity: 0.8;
}

/* Shining animation effect */
.oha-logo::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, 
        transparent 30%, 
        rgba(0, 245, 255, 0.3) 50%, 
        transparent 70%);
    border-radius: 14px;
    opacity: 0;
    animation: logoShine 6s ease-in-out infinite;
    pointer-events: none;
    z-index: -1;
}

/* Logo container shining effect */
.logo-icon::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(
        from 0deg,
        transparent 0deg,
        rgba(0, 245, 255, 0.4) 60deg,
        rgba(255, 255, 255, 0.6) 120deg,
        rgba(0, 245, 255, 0.4) 180deg,
        transparent 240deg,
        transparent 360deg
    );
    animation: logoRotateShine 8s linear infinite;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.logo-icon:hover::before {
    opacity: 1;
}

@keyframes logoShine {
    0%, 90%, 100% {
        opacity: 0;
        transform: translateX(-100%) skewX(-15deg);
    }
    10%, 30% {
        opacity: 1;
        transform: translateX(100%) skewX(-15deg);
    }
}

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

/* Text gradient animation */
@keyframes textShimmer {
    0%, 100% {
        background-position: 200% 0;
    }
    50% {
        background-position: -200% 0;
    }
}

/* Focus state for accessibility */
.nav-logo a:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
    border-radius: var(--border-radius);
}

/* Focus states for accessibility */
.auth-btn:focus,
.auth-btn:focus-visible,
.user-link:focus,
.user-link:focus-visible,
.logout-btn:focus,
.logout-btn:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
    box-shadow: 0 0 0 4px rgba(0, 120, 212, 0.2);
}

/* Section Styles */
section {
    padding: 5rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}