/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #f5f5f5;
    overflow-x: hidden;
    background: #0d0d0d;
    position: relative;
}

/* Circuit Board Background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.02) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(255, 255, 255, 0.02) 0%, transparent 50%),
        linear-gradient(135deg, #0d0d0d 0%, #1a1a1a 50%, #262626 100%);
    z-index: -2;
    animation: backgroundShift 25s ease-in-out infinite;
}

/* Circuit Pattern Overlay */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px),
        linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
        radial-gradient(circle at 25% 25%, rgba(255,255,255,0.03) 2px, transparent 2px),
        radial-gradient(circle at 75% 75%, rgba(255,255,255,0.03) 2px, transparent 2px);
    background-size: 50px 50px, 50px 50px, 100px 100px, 100px 100px;
    z-index: -1;
    opacity: 0.3;
    animation: circuitFlow 30s linear infinite;
}

@keyframes backgroundShift {
    0%, 100% { 
        background: 
            radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.02) 0%, transparent 50%),
            radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.03) 0%, transparent 50%),
            radial-gradient(circle at 40% 80%, rgba(255, 255, 255, 0.02) 0%, transparent 50%),
            linear-gradient(135deg, #0d0d0d 0%, #1a1a1a 50%, #262626 100%);
    }
    50% { 
        background: 
            radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.03) 0%, transparent 50%),
            radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.02) 0%, transparent 50%),
            radial-gradient(circle at 60% 40%, rgba(255, 255, 255, 0.025) 0%, transparent 50%),
            linear-gradient(135deg, #262626 0%, #1a1a1a 50%, #0d0d0d 100%);
    }
}

@keyframes circuitFlow {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

/* Neural Network Background - Only in Hero Section */
.neural-network {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0.1;
    pointer-events: none;
}

.neural-node {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #00ffff;
    border-radius: 50%;
    box-shadow: 0 0 10px #00ffff;
    animation: pulse 3s ease-in-out infinite;
    pointer-events: none;
}

.neural-connection {
    position: absolute;
    height: 1px;
    background: linear-gradient(90deg, transparent, #00ffff, transparent);
    transform-origin: left center;
    animation: dataFlow 4s linear infinite;
    pointer-events: none;
}

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

@keyframes dataFlow {
    0% { opacity: 0; transform: scaleX(0); }
    50% { opacity: 1; transform: scaleX(1); }
    100% { opacity: 0; transform: scaleX(0); }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

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

.nav-logo .logo-text {
    font-size: 2rem;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}



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

.nav-link {
    text-decoration: none;
    color: #ffffff;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 8px;
}

.nav-link:hover {
    color: #cccccc;
    background: rgba(255, 255, 255, 0.05);
}

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

.hamburger span {
    width: 25px;
    height: 3px;
    background: #ffffff;
    margin: 3px 0;
    transition: 0.3s;
    box-shadow: 0 0 5px rgba(255, 255, 255, 0.3);
}

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

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* Code Rain Effect - Right Side Only */
.matrix-rain {
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
    opacity: 0.4;
}

.matrix-column {
    position: absolute;
    top: -100%;
    font-family: 'Fira Code', 'Courier New', monospace;
    font-size: 12px;
    color: #ffffff;
    text-shadow: 0 0 3px rgba(255, 255, 255, 0.3);
    white-space: nowrap;
    animation: codeFall 12s linear infinite;
    line-height: 1.2;
}

@keyframes codeFall {
    0% { top: -100%; opacity: 0.8; }
    10% { opacity: 1; }
    90% { opacity: 0.8; }
    100% { top: 100vh; opacity: 0; }
}

.floating-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
}

.shape {
    position: absolute;
    background: rgba(0, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 255, 255, 0.3);
    animation: complexFloat 8s ease-in-out infinite;
    box-shadow: 
        0 0 20px rgba(0, 255, 255, 0.3),
        inset 0 0 20px rgba(255, 0, 255, 0.1);
}

.shape-1 {
    width: 120px;
    height: 120px;
    top: 15%;
    left: 8%;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    animation-delay: 0s;
}

.shape-2 {
    width: 80px;
    height: 80px;
    top: 65%;
    left: 85%;
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    animation-delay: 2s;
}

.shape-3 {
    width: 150px;
    height: 150px;
    top: 75%;
    left: 15%;
    border-radius: 40% 60% 60% 40% / 60% 30% 70% 40%;
    animation-delay: 4s;
}

.shape-4 {
    width: 60px;
    height: 60px;
    top: 25%;
    left: 75%;
    border-radius: 70% 30% 30% 70% / 70% 70% 30% 30%;
    animation-delay: 1s;
}

.shape-5 {
    width: 200px;
    height: 200px;
    top: 5%;
    left: 65%;
    border-radius: 20% 80% 80% 20% / 20% 20% 80% 80%;
    animation-delay: 3s;
}

@keyframes complexFloat {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg) scale(1);
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    }
    25% { 
        transform: translateY(-30px) rotate(90deg) scale(1.1);
        border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    }
    50% { 
        transform: translateY(-15px) rotate(180deg) scale(0.9);
        border-radius: 70% 30% 30% 70% / 70% 70% 30% 30%;
    }
    75% { 
        transform: translateY(-45px) rotate(270deg) scale(1.2);
        border-radius: 40% 60% 60% 40% / 60% 30% 70% 40%;
    }
}

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

.hero-text {
    color: #f5f5f5;
    position: relative;
}

.hero-text::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    background: linear-gradient(45deg, 
        rgba(255, 255, 255, 0.05) 0%, 
        rgba(255, 255, 255, 0.08) 25%, 
        rgba(255, 255, 255, 0.03) 50%, 
        rgba(255, 255, 255, 0.08) 75%, 
        rgba(255, 255, 255, 0.05) 100%);
    border-radius: 20px;
    filter: blur(20px);
    z-index: -1;
    animation: heroGlow 6s ease-in-out infinite;
}

@keyframes heroGlow {
    0%, 100% { opacity: 0.4; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.02); }
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    position: relative;
}

.title-line {
    display: block;
    font-size: 2rem;
    font-weight: 300;
    opacity: 0.8;
    background: linear-gradient(135deg, #cccccc, #ffffff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.title-name {
    display: block;
    background: linear-gradient(135deg, #ffffff 0%, #f0f0f0 25%, #ffffff 50%, #e6e6e6 75%, #ffffff 100%);
    background-size: 400% 400%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 4s ease-in-out infinite, textGlow 3s ease-in-out infinite alternate;
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.4);
    position: relative;
}

.title-name::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #ffffff, #f0f0f0, #ffffff);
    background-size: 400% 400%;
    animation: gradientShift 4s ease-in-out infinite;
    filter: blur(25px);
    opacity: 0.2;
    z-index: -1;
}

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

@keyframes textGlow {
    from { filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.4)); }
    to { filter: drop-shadow(0 0 25px rgba(255, 255, 255, 0.6)); }
}

.hero-subtitle {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #f5f5f5, #cccccc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
}

.hero-description {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
    line-height: 1.8;
    color: #cccccc;
}

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

.btn {
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    display: inline-block;
}

.btn-primary {
    background: linear-gradient(135deg, #ffffff, #f0f0f0, #ffffff);
    background-size: 300% 300%;
    color: #000;
    font-weight: 700;
    box-shadow: 
        0 10px 30px rgba(255, 255, 255, 0.2),
        0 0 0 1px rgba(255, 255, 255, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
    animation: buttonGradient 4s ease-in-out infinite;
    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.6), transparent);
    transition: left 0.5s ease;
}

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

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

.btn-primary:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 
        0 20px 50px rgba(255, 255, 255, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.btn-secondary {
    background: transparent;
    color: #ffffff;
    border: 2px solid #ffffff;
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 0 20px rgba(255, 255, 255, 0.1),
        inset 0 0 20px rgba(255, 255, 255, 0.05);
}

.btn-secondary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(135deg, #ffffff, #f0f0f0);
    transition: width 0.3s ease;
    z-index: -1;
}

.btn-secondary:hover::before {
    width: 100%;
}

.btn-secondary:hover {
    color: #000;
    border-color: #f0f0f0;
    transform: translateY(-5px) scale(1.05);
    box-shadow: 
        0 20px 50px rgba(255, 255, 255, 0.3),
        inset 0 0 20px rgba(255, 255, 255, 0.1);
}

/* Advanced 3D Holographic Display */
.floating-cube {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 500px;
    perspective: 1500px;
    position: relative;
}

.holographic-container {
    position: relative;
    width: 300px;
    height: 300px;
}

.cube {
    width: 250px;
    height: 250px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transform-style: preserve-3d;
    animation: complexCubeRotation 15s infinite linear;
}

.face {
    position: absolute;
    width: 250px;
    height: 250px;
    background: linear-gradient(135deg, 
        rgba(0, 255, 255, 0.1) 0%, 
        rgba(255, 0, 255, 0.2) 50%, 
        rgba(255, 255, 0, 0.1) 100%);
    border: 1px solid rgba(0, 255, 255, 0.5);
    backdrop-filter: blur(15px);
    box-shadow: 
        0 0 30px rgba(0, 255, 255, 0.3),
        inset 0 0 30px rgba(255, 0, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    color: #00ffff;
    text-shadow: 0 0 10px #00ffff;
}

.face::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, 
        transparent 30%, 
        rgba(0, 255, 255, 0.1) 50%, 
        transparent 70%);
    animation: scanLine 3s linear infinite;
}

@keyframes scanLine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.front { 
    transform: rotateY(0deg) translateZ(125px); 
}
.front::after { content: 'SYSTEMS\\AONLINE\\A01010101\\A11001100'; }

.back { 
    transform: rotateY(180deg) translateZ(125px); 
}
.back::after { content: 'NEURAL\\ANETWORK\\A10101010\\A00110011'; }

.right { 
    transform: rotateY(90deg) translateZ(125px); 
}
.right::after { content: 'FPGA\\ADESIGN\\A11110000\\A01010101'; }

.left { 
    transform: rotateY(-90deg) translateZ(125px); 
}
.left::after { content: 'EMBEDDED\\ASYS\\A00001111\\A10101010'; }

.top { 
    transform: rotateX(90deg) translateZ(125px); 
}
.top::after { content: 'QUANTUM\\ACOMP\\A11001010\\A01100110'; }

.bottom { 
    transform: rotateX(-90deg) translateZ(125px); 
}
.bottom::after { content: 'AI\\AMACHINE\\A10100101\\A11010011'; }

.face::after {
    white-space: pre-line;
    text-align: center;
    animation: textFlicker 2s ease-in-out infinite alternate;
}

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

/* Holographic Rings */
.holo-ring {
    position: absolute;
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 50%;
    animation: ringRotate 20s linear infinite;
}

.holo-ring:nth-child(1) {
    width: 400px;
    height: 400px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotateX(0deg);
    animation-duration: 20s;
}

.holo-ring:nth-child(2) {
    width: 350px;
    height: 350px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotateX(45deg);
    animation-duration: 15s;
    animation-direction: reverse;
}

.holo-ring:nth-child(3) {
    width: 300px;
    height: 300px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotateX(90deg);
    animation-duration: 25s;
}

@keyframes ringRotate {
    0% { transform: translate(-50%, -50%) rotateY(0deg) rotateX(var(--rotation, 0deg)); }
    100% { transform: translate(-50%, -50%) rotateY(360deg) rotateX(var(--rotation, 0deg)); }
}

@keyframes complexCubeRotation {
    0% { transform: translate(-50%, -50%) rotateX(0deg) rotateY(0deg) rotateZ(0deg); }
    33% { transform: translate(-50%, -50%) rotateX(120deg) rotateY(120deg) rotateZ(120deg); }
    66% { transform: translate(-50%, -50%) rotateX(240deg) rotateY(240deg) rotateZ(240deg); }
    100% { transform: translate(-50%, -50%) rotateX(360deg) rotateY(360deg) rotateZ(360deg); }
}

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

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

.section-title {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    color: #ffffff;
    text-align: center;
}

.title-underline {
    width: 150px;
    height: 4px;
    background: #ffffff;
    margin: 0 auto;
    border-radius: 2px;
}

/* About Section */
.about {
    background: #1a1a1a;
    position: relative;
    overflow: hidden;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.03) 0%, transparent 60%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.02) 0%, transparent 60%),
        radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.01) 0%, transparent 70%);
    z-index: 1;
}

.about .container {
    position: relative;
    z-index: 2;
}

.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: center;
    margin-bottom: 3rem;
}

.about-intro {
    font-size: 1.4rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 2rem;
}

.about-text p {
    margin-bottom: 1.8rem;
    font-size: 1.2rem;
    line-height: 1.9;
    color: #cccccc;
    opacity: 0.9;
}

.profile-image-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.profile-photo {
    width: 250px;
    height: 250px;
    object-fit: cover;
    object-position: center 30%;
    border-radius: 50%;
    border: 4px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.profile-photo:hover {
    transform: scale(1.05);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.3);
}

.skills-section {
    margin-top: 2rem;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.skill-category {
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

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

.skill-category:hover::before {
    left: 100%;
}

.skill-category:hover {
    transform: translateY(-10px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.skill-category h4 {
    color: #ffffff;
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    font-weight: 700;
}

.skill-category ul {
    list-style: none;
}

.skill-category li {
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    color: #cccccc;
    position: relative;
}

.skill-category li::before {
    content: '▶';
    position: absolute;
    left: -20px;
    color: #ffffff;
    opacity: 0;
    transition: all 0.3s ease;
}

.skill-category li:hover::before {
    opacity: 1;
    left: -10px;
}

.skill-category li:hover {
    color: #ffffff;
    transform: translateX(15px);
}

/* Remove old profile card styles */
.profile-card {
    display: none;
}

.profile-image {
    display: none;
}

.profile-stats {
    display: none;
}

.stat {
    display: none;
}

.stat-number {
    display: none;
}

.stat-label {
    display: none;
}

/* Experience Section */
.experience {
    background: #262626;
    position: relative;
    overflow: hidden;
}

.experience::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.02) 0%, transparent 50%),
        radial-gradient(circle at 70% 80%, rgba(255, 255, 255, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 20% 60%, rgba(255, 255, 255, 0.01) 0%, transparent 50%);
    z-index: 1;
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    z-index: 2;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    height: 100%;
    width: 4px;
    background: #ffffff;
    transform: translateX(-50%);
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
}

.timeline-item:nth-child(odd) {
    flex-direction: row-reverse;
}

.timeline-marker {
    width: 20px;
    height: 20px;
    background: #ffffff;
    border-radius: 50%;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    box-shadow: 0 0 0 8px #262626;
}

/* Arrow connectors */
.timeline-item::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 60px;
    height: 2px;
    background: rgba(255, 255, 255, 0.5);
    transform: translateY(-50%);
    z-index: 2;
}

.timeline-item:nth-child(odd)::after {
    transform: translateY(-50%) translateX(-100%);
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.5), transparent);
}

.timeline-item:nth-child(even)::after {
    transform: translateY(-50%);
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5));
}

/* Arrow heads */
.timeline-item::before {
    content: '';
    position: absolute;
    top: 50%;
    width: 0;
    height: 0;
    border-style: solid;
    z-index: 2;
}

.timeline-item:nth-child(odd)::before {
    left: calc(50% - 70px);
    transform: translateY(-50%);
    border-width: 6px 10px 6px 0;
    border-color: transparent rgba(255, 255, 255, 0.5) transparent transparent;
}

.timeline-item:nth-child(even)::before {
    left: calc(50% + 70px);
    transform: translateY(-50%);
    border-width: 6px 0 6px 10px;
    border-color: transparent transparent transparent rgba(255, 255, 255, 0.5);
}

.timeline-content {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    padding: 2rem;
    border-radius: 20px;
    width: 45%;
    position: relative;
    transition: all 0.4s ease;
    overflow: hidden;
}

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

.timeline-content:hover::before {
    left: 100%;
}

.timeline-content:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-right: 55%;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-left: 55%;
}

.timeline-date {
    color: #ffffff;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
}

.timeline-content h3 {
    color: #ffffff;
    margin-bottom: 0.8rem;
    font-size: 1.5rem;
    font-weight: 700;
}

.timeline-content h4 {
    color: #cccccc;
    margin-bottom: 1.2rem;
    font-weight: 600;
    font-size: 1.1rem;
}

.timeline-content p {
    color: #cccccc;
    line-height: 1.8;
    font-size: 1rem;
}

.timeline-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 1.5rem;
}

.tag {
    background: #ffffff;
    color: #000;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.tag:hover {
    transform: scale(1.1);
    background: #f0f0f0;
}

/* Projects Section */
.projects {
    background: #1a1a1a;
    position: relative;
}

.projects::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.02) 0%, transparent 50%),
        radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.03) 0%, transparent 50%);
    z-index: 1;
}

.projects .container {
    position: relative;
    z-index: 2;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.project-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    overflow: hidden;
    backdrop-filter: blur(10px);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    cursor: pointer;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.1) 0%, 
        transparent 50%, 
        rgba(255, 255, 255, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
    pointer-events: none;
}

.project-card:hover::before {
    opacity: 1;
}

.project-card:hover {
    transform: translateY(-20px) scale(1.03);
    box-shadow: 
        0 30px 60px rgba(0, 0, 0, 0.5),
        0 0 40px rgba(255, 255, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

.project-card:hover .project-content {
    transform: translateY(-5px);
}

.project-card:hover .project-content h3 {
    color: #ffffff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.project-card:hover .tech-tag {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

.project-image {
    height: 200px;
    background: linear-gradient(135deg, #333333, #666666);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.project-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, 
        transparent 30%, 
        rgba(255, 255, 255, 0.1) 50%, 
        transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

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

.project-placeholder i {
    font-size: 4rem;
    color: #ffffff;
    opacity: 0.8;
    transition: all 0.3s ease;
    z-index: 2;
    position: relative;
}

.project-card:hover .project-placeholder i {
    transform: scale(1.2) rotate(5deg);
    opacity: 1;
    color: #ffffff;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 3;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-links {
    display: flex;
    gap: 1rem;
}

.project-link {
    width: 50px;
    height: 50px;
    background: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000000;
    text-decoration: none;
    transition: all 0.3s ease;
    transform: scale(0.8);
}

.project-card:hover .project-link {
    transform: scale(1);
}

.project-link:hover {
    transform: scale(1.2);
    background: #f0f0f0;
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.3);
}

.project-content {
    padding: 2rem;
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
}

.project-content h3 {
    color: #ffffff;
    margin-bottom: 1rem;
    font-size: 1.3rem;
    transition: all 0.3s ease;
}

.project-content p {
    color: #cccccc;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.project-card:hover .project-content p {
    color: #e0e0e0;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tech-tag {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

/* Contact Section */
.contact {
    background: #262626;
    color: #ffffff;
    position: relative;
    z-index: 10;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.contact-info h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.contact-info p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.contact-details {
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.contact-item i {
    width: 20px;
    text-align: center;
}

.social-links {
    display: flex;
    gap: 1rem;
}

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

.social-link:hover {
    background: #ffffff;
    color: #000000;
    transform: translateY(-3px);
}

.contact-form {
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 20px;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 20;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    font-size: 1rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 30;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.1);
}

.btn-full {
    width: 100%;
    justify-content: center;
}

/* CAPTCHA Styles */
.captcha-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    margin: 1.5rem 0;
}

.captcha-note {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
    margin: 0;
}

/* Form Row for First and Last Name */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

/* CAPTCHA Styles */
.captcha-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    margin: 1.5rem 0;
}

.captcha-note {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
    margin: 0;
}

.g-recaptcha {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 8px;
    padding: 0.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Mobile responsiveness for form row */
@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

/* Footer */
.footer {
    background: #0d0d0d;
    color: #ffffff;
    text-align: center;
    padding: 2rem 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .profile-photo {
        width: 200px;
        height: 200px;
    }
    
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .timeline::before {
        left: 20px;
    }
    
    .timeline-item {
        flex-direction: row !important;
    }
    
    .timeline-item::after,
    .timeline-item::before {
        display: none;
    }
    
    .timeline-marker {
        left: 20px;
        transform: translateX(-50%);
    }
    
    .timeline-content {
        width: calc(100% - 60px);
        margin-left: 60px !important;
        margin-right: 0 !important;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 200px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    .profile-photo {
        width: 180px;
        height: 180px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .timeline-content {
        padding: 1.5rem;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
} 