
:root {
    --bg1: #0a0a0f; --bg2: #1a1a2e; --glass: rgba(255,255,255,0.06);
    --accent1: #00d4ff; --accent2: #06ffa5; --accent3: #7c3aed;
    --accent4: #06ffa5; --accent5: #00d4ff;
    --muted: rgba(255,255,255,0.75); --text: #ffffff;
    --card: rgba(255,255,255,0.05); 
    --success: #00ff88; --warning: #ffaa00; --error: #ff4757;
    --terminal-bg: rgba(10, 15, 30, 0.95);
    --terminal-border: #00d4ff;
    font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
}

/* Light theme variables */
[data-theme="light"] {
    --bg1: #ffffff; --bg2: #f8fafc; --glass: rgba(0,0,0,0.06);
    --accent1: #00d4ff; --accent2: #06ffa5; --accent3: #7c3aed;
    --accent4: #00b894; --accent5: #0984e3;
    --muted: rgba(0,0,0,0.75); --text: #2d3436;
    --card: rgba(0,0,0,0.05);
    --terminal-bg: rgba(255, 255, 255, 0.95);
    --terminal-border: #00d4ff;
}

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

html, body {
    height: 100%;
    background: 
        radial-gradient(1200px 800px at 10% 10%, rgba(0, 212, 255, 0.08), transparent),
        radial-gradient(800px 600px at 90% 20%, rgba(6, 255, 165, 0.06), transparent),
        radial-gradient(600px 400px at 50% 80%, rgba(124, 58, 237, 0.05), transparent),
        linear-gradient(180deg, var(--bg1), var(--bg2));
    color: var(--text);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scroll-behavior: smooth;
    overflow-x: hidden;
    transition: background 0.3s ease, color 0.3s ease;
}

/* Theme Toggle */
.theme-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

.theme-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--card);
    border: 1px solid var(--glass);
    color: var(--text);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.theme-btn:hover {
    background: var(--accent1);
    color: var(--bg1);
    transform: scale(1.1);
}

/* Layout & Structure */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 80px 0;
    position: relative;
}

/* Typography */
h1, h2, h3, h4 {
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.8rem; }

.subtitle {
    color: var(--muted);
    font-size: 1.2rem;
    margin-bottom: 40px;
    max-width: 700px;
}

/* Navigation */
header {
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(6px);
    background: var(--glass);
    border-bottom: 1px solid var(--glass);
    transition: all 0.3s ease;
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
    letter-spacing: 0.6px;
}

.logo {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: inline-grid;
    place-items: center;
    background: linear-gradient(135deg, var(--accent1), var(--accent2));
    box-shadow: 0 6px 18px rgba(110,200,255,0.08), inset 0 -6px 18px rgba(255,255,255,0.06);
}

.logo svg {
    width: 22px;
    height: 22px;
    transform: rotate(12deg);
}

/* Animated Brand Name */
.brand-name {
    display: flex;
    gap: 2px;
}

.brand-letter {
    display: inline-block;
    transition: all 0.3s ease;
    cursor: pointer;
}

.brand-letter:hover {
    color: var(--accent1);
    transform: translateY(-3px) scale(1.2) rotate(2deg);
    text-shadow: 0 0 30px var(--accent1), 0 0 60px var(--accent2);
    animation: techGlow 0.6s ease-in-out;
}

@keyframes techGlow {
    0%, 100% { 
        text-shadow: 0 0 30px var(--accent1), 0 0 60px var(--accent2);
    }
    50% { 
        text-shadow: 0 0 50px var(--accent1), 0 0 80px var(--accent2), 0 0 100px var(--accent4);
    }
}

.brand-tagline {
    font-size: 12px;
    color: var(--muted);
    margin-top: -2px;
}

nav {
    display: flex;
    gap: 12px;
    align-items: center;
}

.nav-link {
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 8px;
    text-decoration: none;
    color: var(--muted);
    transition: all 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent1), var(--accent2));
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover, .nav-link.active {
    color: var(--text);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 70%;
}

/* Dropdown Navigation */
.nav-dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
}

.dropdown-toggle i {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.nav-dropdown:hover .dropdown-toggle i {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--card);
    border: 1px solid var(--glass);
    border-radius: 12px;
    padding: 12px 0;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    backdrop-filter: blur(20px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    z-index: 1000;
}

.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: block;
    padding: 10px 20px;
    color: var(--muted);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.dropdown-item:hover {
    color: var(--text);
    background: var(--glass);
    border-left-color: var(--accent1);
    padding-left: 25px;
}

.dropdown-item:first-child {
    border-radius: 12px 12px 0 0;
}

.dropdown-item:last-child {
    border-radius: 0 0 12px 12px;
}

.btn {
    font-weight: 600;
    padding: 12px 24px;
    border-radius: 10px;
    display: inline-block;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-family: inherit;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(90deg, var(--accent1), var(--accent2));
    color: var(--bg1);
    box-shadow: 0 8px 30px rgba(110,200,255,0.12);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: 0.5s;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-ghost {
    padding: 11px 23px;
    border-radius: 10px;
    border: 1px solid var(--glass);
    color: var(--muted);
    background: transparent;
}

.btn-ghost:hover {
    border-color: var(--accent1);
    color: var(--text);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 600px;
    z-index: 20;
    position: relative;
    margin-right: 550px;
}

.eyebrow {
    display: inline-flex;
    gap: 10px;
    align-items: center;
    padding: 6px 12px;
    border-radius: 999px;
    background: var(--glass);
    color: var(--muted);
    font-size: 14px;
    margin-bottom: 20px;
}

.hero-cta {
    display: flex;
    gap: 16px;
    margin-top: 30px;
}

/* Animated Title */
.animated-title {
    overflow: visible;
    height: auto;
    margin-bottom: 40px;
    position: relative;
    z-index: 10;
    max-width: 600px;
}

.title-part {
    display: inline-block;
    opacity: 0;
    transform: translateY(50px);
    transition: all 1s cubic-bezier(0.4, 0, 0.2, 1);
    margin-right: 8px;
}

.title-part.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Rolling text animation */
.rolling-text {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.rolling-word {
    display: inline-block;
    opacity: 0;
    transform: translateY(30px) rotateX(90deg);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.rolling-word.visible {
    opacity: 1;
    transform: translateY(0) rotateX(0deg);
}

.rolling-word::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--accent1), var(--accent2), var(--accent4));
    transform: scaleX(0);
    transition: transform 0.6s ease 0.3s;
}

.rolling-word.visible::before {
    transform: scaleX(1);
}

/* Individual word styling */
.word-crafting {
    color: var(--accent1);
    font-weight: 700;
    text-shadow: 0 0 20px rgba(255, 107, 53, 0.3);
}

.word-distributed {
    color: var(--accent2);
    font-weight: 600;
    text-shadow: 0 0 20px rgba(247, 147, 30, 0.3);
}

.word-intelligence {
    color: var(--accent4);
    font-weight: 800;
    text-shadow: 0 0 20px rgba(6, 255, 165, 0.3);
}

.word-beautiful {
    color: var(--accent3);
    font-weight: 700;
    text-shadow: 0 0 20px rgba(255, 210, 63, 0.3);
}

.word-web {
    color: var(--accent5);
    font-weight: 600;
    text-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
}

.word-systems {
    color: var(--accent1);
    font-weight: 800;
    text-shadow: 0 0 20px rgba(255, 107, 53, 0.3);
}

/* Ensure title is above terminal */
.hero-content {
    max-width: 600px;
    z-index: 20;
    position: relative;
    margin-right: 550px;
}

/* Interactive Terminal - Adjusted positioning */
.terminal-container {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 500px;
    height: 400px;
    perspective: 1000px;
    z-index: 5;
}

.terminal {
    width: 100%;
    height: 100%;
    background: var(--terminal-bg);
    border-radius: 16px;
    border: 2px solid var(--terminal-border);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1), 0 0 30px rgba(255, 107, 53, 0.3);
    padding: 20px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px;
    line-height: 1.6;
    overflow: hidden;
    position: relative;
    transform-style: preserve-3d;
    transition: all 0.5s ease;
    backdrop-filter: blur(10px);
}

.terminal:hover {
    border-color: var(--accent2);
    box-shadow: 0 25px 50px rgba(0,0,0,0.15), 0 0 40px rgba(247, 147, 30, 0.4);
}

.terminal::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 40px;
    background: var(--glass);
    border-bottom: 1px solid var(--glass);
    border-radius: 16px 16px 0 0;
}

.terminal-content {
    margin-top: 40px;
    height: calc(100% - 100px);
    overflow-y: auto;
    padding-bottom: 60px;
}

.terminal-line {
    display: flex;
    margin-bottom: 8px;
}

.terminal-prompt {
    color: var(--accent1);
    margin-right: 10px;
    white-space: nowrap;
    font-weight: bold;
}

.terminal-command {
    color: var(--accent4);
    font-weight: 600;
}

.terminal-output {
    color: var(--text);
    margin-left: 20px;
    opacity: 0.9;
}

.terminal-input {
    display: flex;
    align-items: center;
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    background: var(--glass);
    border-radius: 8px;
    padding: 8px 12px;
    border: 1px solid var(--glass);
}

.terminal-input input {
    background: transparent;
    border: none;
    color: var(--accent4);
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px;
    width: 100%;
    outline: none;
    caret-color: var(--accent1);
    font-weight: 600;
    padding: 4px 0;
}

.terminal-input input::placeholder {
    color: var(--muted);
    opacity: 0.7;
}

/* Cards & Grids */
.grid {
    display: grid;
    gap: 30px;
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
    background: var(--card);
    border-radius: 16px;
    padding: 24px;
    border: 1px solid var(--glass);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

/* Team Section */
#team {
    background: var(--glass);
}

#team h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--text);
}

#team .subtitle {
    text-align: center;
    font-size: 1.2rem;
    margin-bottom: 40px;
    color: var(--muted);
}

.grid {
    display: grid;
    gap: 30px;
}

.grid-4 {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.team-member {
    text-align: center;
    opacity: 0; /* Start hidden for animation */
    transform: translateY(50px) rotateX(90deg); /* Start from below and rotated */
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    background: var(--card);
    border: 1px solid var(--glass);
    border-radius: 16px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.team-member.visible {
    opacity: 1;
    transform: translateY(0) rotateX(0deg);
}

.team-member:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0,0,0,0.15), 0 0 30px rgba(255, 107, 53, 0.2);
    border-color: var(--accent1);
}

.member-image {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    margin: 0 auto 25px;
    background: linear-gradient(135deg, var(--accent4), var(--accent5));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: var(--bg1);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s ease;
    box-shadow: 0 10px 30px rgba(6, 255, 165, 0.3);
    /* Start with rolling animation */
    opacity: 0;
    transform: translateY(30px) rotateX(90deg) scale(0.8);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.3s;
}

.team-member.visible .member-image {
    opacity: 1;
    transform: translateY(0) rotateX(0deg) scale(1);
}

.member-image:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 15px 40px rgba(6, 255, 165, 0.5), 0 0 50px rgba(6, 255, 165, 0.3);
}

.member-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: relative;
    z-index: 3;
    transition: all 0.4s ease;
}
.member-image:hover img {
    transform: scale(1.1);
}
.member-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--accent4), var(--accent5));
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
}
.member-image:hover::before {
    opacity: 0.3;
}
.member-image::after {
    content: '';
    position: absolute;
    inset: 3px;
    background: var(--bg2);
    border-radius: 50%;
    z-index: 0;
    transition: all 0.4s ease;
}

/* Ensure proper contrast for light theme */
[data-theme="light"] .member-image::after {
    background: var(--bg1);
}

[data-theme="light"] .team-member {
    background: var(--bg1);
    border-color: var(--glass);
}

[data-theme="light"] .member-bio {
    color: var(--muted);
}
.member-image:hover::after {
    background: transparent;
}

.member-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.4s ease;
    z-index: 3;
    border-radius: 50%;
}
.member-image:hover .member-overlay {
    opacity: 1;
    background: rgba(0,0,0,0.9);
}
.member-social {
    display: flex;
    gap: 20px;
    transform: translateY(20px);
    transition: transform 0.4s ease;
}

.member-image:hover .member-social {
    transform: translateY(0);
}
.social-link {
    color: var(--accent4);
    font-size: 24px;
    transition: all 0.3s ease;
    background: var(--glass);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass);
}
.social-link:hover {
    color: var(--bg1);
    background: var(--accent4);
    transform: scale(1.2) rotate(10deg);
    box-shadow: 0 0 30px var(--accent4);
}

.social-link.twitter:hover {
    background: #1DA1F2;
    color: white;
    box-shadow: 0 0 30px #1DA1F2;
}
.social-link.linkedin:hover {
    background: #0077B5;
    color: white;
    box-shadow: 0 0 30px #0077B5;
}

.social-link.github:hover {
    background: #333;
    color: white;
    box-shadow: 0 0 30px #333;
}
.member-role {
    color: var(--accent4);
    font-weight: 600;
    margin-bottom: 15px;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.member-bio {
    color: var(--muted);
    font-size: 14px;
    margin-bottom: 20px;
    line-height: 1.6;
    padding: 0 10px;
}

.member-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-top: 20px;
}
.skill-tag {
    padding: 6px 12px;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(6, 255, 165, 0.1), rgba(0, 212, 255, 0.1));
    font-size: 12px;
    color: var(--accent4);
    font-weight: 600;
    border: 1px solid rgba(6, 255, 165, 0.2);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.skill-tag::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(6, 255, 165, 0.3), transparent);
    transition: left 0.5s ease;
}

.skill-tag:hover::before {
    left: 100%;
}
.skill-tag:hover {
    background: var(--accent4);
    color: var(--bg1);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(6, 255, 165, 0.4);
}

/* Team member name styling */
.team-member h3 {
    color: var(--text);
    font-size: 1.4rem;
    margin-bottom: 10px;
    font-weight: 700;
    transition: color 0.3s ease;
}

.team-member:hover h3 {
    color: var(--accent4);
    text-shadow: 0 0 20px rgba(6, 255, 165, 0.5);
}
@media (max-width: 768px) {
    #team {
        padding: 60px 0;
    }
    
    .grid-4 {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }
    
    .team-member {
        padding: 20px;
    }
    
    .member-image {
        width: 120px;
        height: 120px;
    }
}
@media (max-width: 480px) {
    #team .container {
        padding: 0 15px;
    }
    
    #team h2 {
        font-size: 1.8rem;
    }
    
    #team .subtitle {
        font-size: 1rem;
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .grid-4 {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

/* Add floating animation for team cards */
@keyframes teamFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

/* Staggered entrance animations */
.team-member:nth-child(1) { 
    animation: teamFloat 4s ease-in-out infinite;
    transition-delay: 0.1s;
}
.team-member:nth-child(2) { 
    animation: teamFloat 4s ease-in-out infinite 0.5s;
    transition-delay: 0.3s;
}
.team-member:nth-child(3) { 
    animation: teamFloat 4s ease-in-out infinite 1s;
    transition-delay: 0.5s;
}
.team-member:nth-child(4) { 
    animation: teamFloat 4s ease-in-out infinite 1.5s;
    transition-delay: 0.7s;
}

/* Enhanced card background */
.team-member::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent1), var(--accent2), var(--accent4));
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.team-member:hover::before {
    transform: scaleX(1);
}

/* Tech-focused glow effects */
.team-member::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, transparent, var(--accent1), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 16px;
    pointer-events: none;
}

.team-member:hover::after {
    opacity: 0.1;
}

/* New interactive animations */
@keyframes imageRipple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

@keyframes imageDoubleClick {
    0%, 100% { transform: scale(1) rotate(0deg); }
    25% { transform: scale(1.2) rotate(-5deg); }
    50% { transform: scale(1.3) rotate(5deg); }
    75% { transform: scale(1.1) rotate(-3deg); }
}

@keyframes techGlow {
    0%, 100% { 
        box-shadow: 0 0 20px var(--accent1), 0 0 40px var(--accent2);
    }
    50% { 
        box-shadow: 0 0 30px var(--accent1), 0 0 60px var(--accent2), 0 0 80px var(--accent4);
    }
}

@keyframes cyberPulse {
    0%, 100% { 
        transform: scale(1) rotate(0deg);
        filter: hue-rotate(0deg);
    }
    25% { 
        transform: scale(1.05) rotate(2deg);
        filter: hue-rotate(90deg);
    }
    50% { 
        transform: scale(1.1) rotate(0deg);
        filter: hue-rotate(180deg);
    }
    75% { 
        transform: scale(1.05) rotate(-2deg);
        filter: hue-rotate(270deg);
    }
}

@keyframes skillTagClick {
    0%, 100% { transform: scale(1) translateY(0); }
    50% { transform: scale(1.2) translateY(-5px); }
}

@keyframes cardClick {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

@keyframes wordBounce {
    0% { transform: translateY(0) rotateX(0deg); }
    25% { transform: translateY(-15px) rotateX(15deg); }
    50% { transform: translateY(-25px) rotateX(25deg); }
    75% { transform: translateY(-10px) rotateX(10deg); }
    100% { transform: translateY(0) rotateX(0deg); }
}

/* Enhanced rolling word effects */
.rolling-word {
    cursor: pointer;
    transition: all 0.3s ease;
}

.rolling-word:hover {
    transform: translateY(-3px) scale(1.05);
    filter: brightness(1.2);
}

/* Add sparkle effect for intelligence word */
.word-intelligence::after {
    content: '✨';
    position: absolute;
    top: -10px;
    right: -15px;
    font-size: 16px;
    opacity: 0;
    transition: all 0.3s ease;
    animation: sparkle 2s ease-in-out infinite;
}

.word-intelligence.visible::after {
    opacity: 1;
}

@keyframes sparkle {
    0%, 100% { transform: scale(1) rotate(0deg); opacity: 0.7; }
    50% { transform: scale(1.3) rotate(180deg); opacity: 1; }
}

/* Add pulse effect for beautiful word */
.word-beautiful {
    animation: beautifulPulse 3s ease-in-out infinite;
}

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

/* Add tech glow for web word */
.word-web {
    position: relative;
}

.word-web::before {
    content: '';
    position: absolute;
    inset: -5px;
    background: linear-gradient(45deg, var(--accent5), transparent, var(--accent4));
    border-radius: 8px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.word-web:hover::before {
    opacity: 0.3;
}

/* Selected skill tag state */
.skill-tag.selected {
    background: var(--accent1);
    color: var(--bg1);
    box-shadow: 0 0 20px rgba(255, 107, 53, 0.6);
    transform: translateY(-3px);
}

/* Enhanced member image interactions */
.member-image:active {
    transform: scale(0.95);
}

/* Skill tooltip positioning */
.skill-tooltip {
    position: absolute;
    z-index: 1000;
}

/* Featured Projects Section */
.projects-section {
    background: linear-gradient(135deg, var(--bg1), var(--bg2));
    position: relative;
    overflow: hidden;
}

.projects-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(800px 600px at 20% 20%, rgba(0, 212, 255, 0.1), transparent),
        radial-gradient(600px 400px at 80% 80%, rgba(6, 255, 165, 0.1), transparent);
    pointer-events: none;
}

.projects-section::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 1000px;
    height: 1000px;
    background: conic-gradient(from 0deg, transparent, rgba(124, 58, 237, 0.03), transparent);
    transform: translate(-50%, -50%);
    animation: rotate 20s linear infinite;
    pointer-events: none;
}

@keyframes rotate {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
    position: relative;
    z-index: 2;
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--glass);
    border: 1px solid var(--glass);
    border-radius: 50px;
    color: var(--accent1);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
    backdrop-filter: blur(10px);
}

.section-badge i {
    font-size: 16px;
    color: var(--accent2);
}

.projects-showcase {
    display: flex;
    flex-direction: column;
    gap: 120px;
    margin-bottom: 80px;
}

.project-hero {
    position: relative;
    z-index: 2;
}

.project-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.project-content.reverse {
    direction: rtl;
}

.project-content.reverse > * {
    direction: ltr;
}

.project-info {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.project-category {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: linear-gradient(135deg, var(--accent1), var(--accent2));
    color: var(--bg1);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    width: fit-content;
}

.project-category i {
    font-size: 14px;
}

.project-title {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.1;
    color: var(--text);
    margin: 0;
}

.project-description {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--muted);
    margin: 0;
}

.project-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 20px 0;
}

.stat {
    text-align: center;
    padding: 16px;
    background: var(--glass);
    border: 1px solid var(--glass);
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

.stat-number {
    display: block;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--accent1);
    margin-bottom: 4px;
}

.stat-label {
    font-size: 12px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tech-tag {
    padding: 6px 12px;
    background: var(--glass);
    border: 1px solid var(--glass);
    border-radius: 20px;
    font-size: 12px;
    color: var(--accent4);
    font-weight: 600;
    transition: all 0.3s ease;
}

.tech-tag:hover {
    background: var(--accent4);
    color: var(--bg1);
    transform: translateY(-2px);
}

.project-cta {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 32px;
    background: linear-gradient(135deg, var(--accent1), var(--accent2));
    color: var(--bg1);
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: fit-content;
}

.project-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0, 212, 255, 0.3);
}

.project-cta:active {
    transform: translateY(-1px);
}

.project-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.project-cta:hover::before {
    transform: translateX(100%);
}

.project-cta i {
    transition: transform 0.3s ease;
}

.project-cta:hover i {
    transform: translateX(5px);
}

.project-visual {
    position: relative;
}

.project-image-container {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
}

.project-image-container:hover {
    transform: translateY(-10px);
    box-shadow: 0 35px 70px rgba(0,0,0,0.3);
}

.project-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-image-container:hover .project-image {
    transform: scale(1.05);
}

.project-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.project-image-container:hover .project-overlay {
    opacity: 1;
}

.overlay-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: white;
    text-align: center;
}

.overlay-content i {
    font-size: 48px;
    color: var(--accent1);
}

.overlay-content span {
    font-size: 16px;
    font-weight: 600;
}

.view-all-projects {
    text-align: center;
    margin-top: 60px;
}

.btn-large {
    padding: 18px 36px;
    font-size: 18px;
    border-radius: 16px;
}

.btn-large i {
    margin-right: 12px;
}

/* Project Animations */
.project-hero {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-hero.visible {
    opacity: 1;
    transform: translateY(0);
}

.project-hero:nth-child(1) { transition-delay: 0.1s; }
.project-hero:nth-child(2) { transition-delay: 0.3s; }
.project-hero:nth-child(3) { transition-delay: 0.5s; }
.project-hero:nth-child(4) { transition-delay: 0.7s; }

/* Enhanced Project Stats */
.stat {
    position: relative;
    overflow: hidden;
}

.stat::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.stat:hover::before {
    left: 100%;
}

.stat-number {
    position: relative;
    z-index: 2;
}

/* Enhanced Tech Tags */
.tech-tag {
    position: relative;
    overflow: hidden;
}

.tech-tag::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(6, 255, 165, 0.3), transparent);
    transition: left 0.5s ease;
}

.tech-tag:hover::before {
    left: 100%;
}

/* Project Image Enhancements */
.project-image-container::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, transparent, rgba(0, 212, 255, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.project-image-container:hover::after {
    opacity: 1;
}

/* Responsive Design for Projects */
@media (max-width: 1024px) {
    .project-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .project-content.reverse {
        direction: ltr;
    }
    
    .project-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .projects-showcase {
        gap: 80px;
    }
    
    .project-title {
        font-size: 2rem;
    }
    
    .project-stats {
        grid-template-columns: 1fr;
    }
    
    .project-tech {
        justify-content: center;
    }
    
    .project-cta {
        width: 100%;
        justify-content: center;
    }
}

/* Project Modal */
.project-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg2);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.project-modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--card);
    border-radius: 16px;
    padding: 40px;
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: var(--muted);
    font-size: 24px;
    cursor: pointer;
}

/* Services Section */
.service-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--accent1), var(--accent2));
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

/* Partners Section */
.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 30px;
    align-items: center;
}

.partner-logo {
    height: 80px;
    border-radius: 12px;
    background: var(--card);
    border: 1px solid var(--glass);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.partner-logo:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    border-color: var(--accent1);
}

.partner-placeholder {
    color: var(--muted);
    font-weight: 600;
    font-size: 14px;
    text-align: center;
    transition: color 0.3s ease;
}

.partner-logo:hover .partner-placeholder {
    color: var(--accent1);
}

/* Footer */
footer {
    padding: 60px 0 30px;
    border-top: 1px solid var(--glass);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
}

.footer-bottom {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--glass);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Animations */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes glow {
    0%, 100% { box-shadow: 0 0 20px rgba(126, 249, 211, 0.3); }
    50% { box-shadow: 0 0 40px rgba(126, 249, 211, 0.6); }
}

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

@keyframes typing {
    from { width: 0; }
    to { width: 100%; }
}

.floating {
    animation: float 5s ease-in-out infinite;
}

.glowing {
    animation: glow 3s ease-in-out infinite;
}

.blinking-cursor {
    animation: blink 1s infinite;
    color: var(--accent1);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .hero-content {
        margin-right: 0;
        max-width: 100%;
    }
    
    .terminal-container {
        position: relative;
        width: 100%;
        height: 400px;
        margin-top: 60px;
        transform: none;
    }
    
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    
    .member-image {
        width: 120px;
        height: 120px;
    }
}

@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    
    .grid-2, .grid-3, .grid-4 {
        grid-template-columns: 1fr;
    }
    
    .hero-cta {
        flex-direction: column;
    }
    
    nav {
        display: none;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .animated-title {
        height: 150px;
    }
    
    .theme-toggle {
        top: 10px;
        right: 10px;
    }
    
    .theme-btn {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .member-image {
        width: 100px;
        height: 100px;
    }
    
    .member-social {
        gap: 15px;
    }
    
    .social-link {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
}
