/* Reset and base styles */
:root {
    --primary-color: #8B0000;    /* Deep rich burgundy */
    --secondary-color: #FF4500;  /* Burnt orange */
    --accent-color: #FF8C00;     /* Dark orange */
    --burgundy-light: #BC2F3C;   /* Lighter burgundy */
    --orange-light: #FFA07A;     /* Light salmon */
    --text-color: #2D1414;       /* Dark burgundy text */
    --bg-color: #0A0000;         /* Almost black with burgundy tint */
    --gray-light: #F3F4F6;
    --gradient-1: linear-gradient(135deg, #8B0000 0%, #BC2F3C 100%);
    --gradient-2: linear-gradient(45deg, #FF4500 0%, #FF8C00 100%);
    --gradient-3: linear-gradient(to right, #8B0000, #FF4500);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --neon-shadow: 0 0 20px rgba(139, 0, 0, 0.6);
    --text-shadow: 2px 2px 0 rgba(45, 20, 20, 0.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
    background: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100vw;
}

main {
    width: 100vw;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

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

/* Navigation */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(135deg, var(--bg-color) 0%, var(--bg-color-dark) 100%);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    border-bottom: 1px solid rgba(255, 69, 0, 0.1);
}

nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    width: 100%;
    max-width: 1200px;
    padding: 0 2rem;
}

nav a {
    color: #ffffff;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    text-align: center;
}

nav a:hover {
    color: var(--accent-color);
    background: rgba(255, 69, 0, 0.1);
}

nav a.active {
    color: var(--accent-color);
    background: rgba(255, 69, 0, 0.15);
    border: 1px solid rgba(255, 69, 0, 0.2);
}

.logo a {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.logo a:hover {
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 4px;
}

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

.nav-links a.active {
    color: var(--accent-color);
    background: rgba(255, 69, 0, 0.1);
}

.nav-brand {
    font-size: 1.8rem;
    font-weight: 900;
    letter-spacing: -1px;
    color: var(--primary-color);
}

.nav-menu {
    display: flex;
    gap: 2rem;
    margin: 0;
    padding: 0.5rem 0;
    list-style: none;
    justify-content: center;  
}

.nav-menu a {
    color: rgba(255, 255, 255, 0.8);  
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 20px;
}

.nav-menu a:hover {
    color: var(--accent-color);
    background: rgba(255, 69, 0, 0.1);
}

.nav-menu a.active {
    color: var(--accent-color);
    background: rgba(255, 69, 0, 0.15);
    border: 1px solid rgba(255, 69, 0, 0.2);
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 100vh;
    background: linear-gradient(135deg, var(--bg-color) 0%, var(--bg-color-dark) 100%);
    overflow: hidden;
    padding: 2rem;
}

.hero {
    min-height: 90vh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 6rem;
    position: relative;
    overflow: hidden;
    background: var(--bg-color);
}

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

.hero-content .profile-section {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 2rem;
}

.hero-content .profile-image {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--accent-color);
    box-shadow: 0 0 20px rgba(255, 69, 0, 0.3);
    transition: all 0.3s ease;
}

.hero-content .profile-image:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(255, 69, 0, 0.5);
}

/* AI Circuit Pattern Background */
.circuit-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(217deg, rgba(139, 0, 0, 0.1), rgba(255, 69, 0, 0.1) 70.71%),
        linear-gradient(127deg, rgba(255, 69, 0, 0.1), rgba(139, 0, 0, 0.1) 70.71%),
        linear-gradient(336deg, rgba(139, 0, 0, 0.1), rgba(255, 69, 0, 0.1) 70.71%);
    opacity: 0.8;
    z-index: 1;
}

.neural-network {
    background: 
        radial-gradient(circle at 20% 30%, rgba(139, 0, 0, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255, 69, 0, 0.2) 0%, transparent 50%);
}

/* Neural Network Nodes */
.nodes {
    background-image: 
        radial-gradient(circle at center, rgba(255, 69, 0, 0.15) 0%, rgba(255, 69, 0, 0.15) 1px, transparent 1px),
        radial-gradient(circle at center, rgba(139, 0, 0, 0.1) 0%, rgba(139, 0, 0, 0.1) 1px, transparent 1px);
    background-size: 30px 30px, 15px 15px;
    animation: nodeFloat 15s linear infinite;
}

/* Add connecting lines between nodes */
.nodes::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(45deg, transparent 45%, rgba(255, 69, 0, 0.1) 49%, rgba(255, 69, 0, 0.1) 51%, transparent 55%) 0 0 / 30px 30px,
        linear-gradient(-45deg, transparent 45%, rgba(139, 0, 0, 0.1) 49%, rgba(139, 0, 0, 0.1) 51%, transparent 55%) 0 0 / 30px 30px;
    animation: connectionPulse 4s ease-in-out infinite;
}

/* Floating particles */
.nodes::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 50% 50%, rgba(255, 69, 0, 0.2) 0%, transparent 2px) 0 0 / 60px 60px,
        radial-gradient(circle at 25% 25%, rgba(139, 0, 0, 0.2) 0%, transparent 2px) 0 0 / 40px 40px;
    animation: particleFloat 20s linear infinite;
}

.gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        45deg,
        rgba(139, 0, 0, 0.7),
        rgba(0, 0, 0, 0.8)
    );
    margin-top: -3rem;
    mix-blend-mode: soft-light;
}

.squares {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.square {
    position: absolute;
    width: 60px;
    height: 60px;
    background: linear-gradient(217deg, rgba(139, 0, 0, 0.05), rgba(255, 69, 0, 0.05));
    animation: animate 10s linear infinite;
    border: 2px solid rgba(255, 69, 0, 0.1);
    border-radius: 10px;
    backdrop-filter: blur(5px);
}

.squares .square:nth-child(1) {
    top: 20%;
    right: 30%;
    animation-delay: 0s;
}

.squares .square:nth-child(2) {
    top: 40%;
    left: 25%;
    animation-delay: 1s;
    width: 90px;
    height: 90px;
}

.squares .square:nth-child(3) {
    bottom: 30%;
    right: 15%;
    animation-delay: 2s;
    width: 45px;
    height: 45px;
}

.squares .square:nth-child(4) {
    bottom: 20%;
    left: 20%;
    animation-delay: 3s;
    width: 70px;
    height: 70px;
}

.squares .square:nth-child(5) {
    top: 60%;
    left: 40%;
    animation-delay: 4s;
}

.squares .square:nth-child(6) {
    top: 10%;
    left: 50%;
    animation-delay: 5s;
    width: 110px;
    height: 110px;
}

.squares .square:nth-child(7) {
    top: 35%;
    left: 65%;
    animation-delay: 6s;
    width: 40px;
    height: 40px;
}

.squares .square:nth-child(8) {
    top: 50%;
    right: 35%;
    animation-delay: 7s;
    width: 80px;
    height: 80px;
}

.squares .square:nth-child(9) {
    bottom: 40%;
    left: 35%;
    animation-delay: 8s;
    width: 50px;
    height: 50px;
}

.squares .square:nth-child(10) {
    top: 45%;
    right: 20%;
    animation-delay: 9s;
    width: 65px;
    height: 65px;
}

@keyframes animate {
    0% {
        transform: scale(0) translateY(0) rotate(0);
        opacity: 0;
    }
    50% {
        opacity: 0.5;
    }
    100% {
        transform: scale(1.3) translateY(-450px) rotate(360deg);
        opacity: 0;
    }
}

.cta-section {
    grid-column: 1 / span 2;  /* Make it span both columns */
    width: 100%;
    margin-top: 2rem;
    position: relative;
    z-index: 3;
}

.cta-heading {
    font-size: 2.5rem;
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1.5rem;
    font-weight: 600;
    text-align: center;
    filter: drop-shadow(0 0 10px rgba(255, 69, 0, 0.3));
    line-height: 1.3;
}

.hero-cta {
    display: flex;
    gap: 2rem;
    justify-content: center;
    margin-top: 2rem;
}

.hero-text {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero-text h1 {
    font-size: 3.5rem;
    margin: 1rem 0;
    color: #ffffff;
}

.hero-text .subtitle {
    font-size: 1.5rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.hero-text .description {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.name-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    width: 100%;
    padding-left: 0;
    perspective: 1500px;
    padding: 2rem;
    margin-bottom: 1rem;
    transform-style: preserve-3d;
}

.name-spinner {
    transform-style: preserve-3d;
    animation: moveForward 8s ease-in-out infinite;
    position: relative;
}

@keyframes moveForward {
    0% {
        transform: translateZ(0px) scale(1);
    }
    50% {
        transform: translateZ(200px) scale(1.2);
    }
    100% {
        transform: translateZ(0px) scale(1);
    }
}

.glitch {
    font-size: 6rem;
    font-weight: 900;
    letter-spacing: -2px;
    word-spacing: -20px;
    background: linear-gradient(to right, #fff, var(--orange-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    text-shadow: 
        2px 2px 0 var(--primary-color),
        -2px -2px 0 var(--secondary-color);
    filter: drop-shadow(0 0 15px rgba(139, 0, 0, 0.5));
    transform-style: preserve-3d;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, #fff, var(--orange-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.glitch::before {
    top: 2px;  
    text-shadow: -2px 0 var(--secondary-color);
    animation: glitch-1 5s infinite linear alternate-reverse;
}

.glitch::after {
    top: -2px;  
    text-shadow: 2px 0 var(--primary-color);
    animation: glitch-2 5s infinite linear alternate-reverse;
}

@keyframes glitch-1 {
    0% {
        transform: translate(0);
    }
    33% {
        transform: translate(-2px, 1px);  
    }
    66% {
        transform: translate(2px, -1px);  
    }
    100% {
        transform: translate(0);
    }
}

@keyframes glitch-2 {
    0% {
        transform: translate(0);
    }
    33% {
        transform: translate(2px, -1px);  
    }
    66% {
        transform: translate(-2px, 1px);  
    }
    100% {
        transform: translate(0);
    }
}

.name-spinner::before {
    content: '';
    position: absolute;
    inset: -20px;
    background: radial-gradient(
        circle at center,
        rgba(255, 69, 0, 0.2) 0%,
        rgba(139, 0, 0, 0.2) 50%,
        transparent 70%
    );
    filter: blur(20px);
    z-index: -1;
    animation: depthGlow 8s ease-in-out infinite;
}

@keyframes depthGlow {
    0% {
        opacity: 0.3;
        transform: translateZ(-50px);
    }
    50% {
        opacity: 0.8;
        transform: translateZ(100px);
    }
    100% {
        opacity: 0.3;
        transform: translateZ(-50px);
    }
}

.name-spinner::after {
    content: '';
    position: absolute;
    inset: -10px;
    background: radial-gradient(
        circle at center,
        rgba(255, 69, 0, 0.3) 0%,
        rgba(139, 0, 0, 0.3) 50%,
        transparent 70%
    );
    filter: blur(15px);
    z-index: -2;
    animation: shadowMove 8s ease-in-out infinite;
}

@keyframes shadowMove {
    0% {
        transform: translateZ(-100px) scale(1);
        opacity: 0.3;
    }
    50% {
        transform: translateZ(0) scale(1.4);
        opacity: 0.6;
    }
    100% {
        transform: translateZ(-100px) scale(1);
        opacity: 0.3;
    }
}

.title-container {
    margin: 0.5rem 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
}

.subtitle {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 0px;
    background: linear-gradient(to right, #fff, var(--orange-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 10px rgba(255, 69, 0, 0.5));
    margin-bottom: 1rem;
}

.animated-text {
    height: 35px;  /* Increased height */
    overflow: hidden;
    position: relative;
    margin-top: 2rem;
    margin-bottom: 0.25rem;
}

.animated-text span {
    display: block;
    height: 100%;
    padding-top: 4px;  /* Added padding to center text vertically */
    font-size: 1.6rem;
    font-weight: 600;
    letter-spacing: 1px;
    color: var(--accent-color);
    text-shadow: 0 0 10px rgba(255, 69, 0, 0.5);
    animation: spin_words 10s infinite;  /* Increased duration for more text */
    line-height: 35px;  /* Increased line height */
}

@keyframes spin_words {
    0% { transform: translateY(0%); }
    16% { transform: translateY(-105%); }
    32% { transform: translateY(-210%); }
    48% { transform: translateY(-315%); }
    64% { transform: translateY(-420%); }  /* Added new position */
    80% { transform: translateY(-420%); }
    100% { transform: translateY(0%); }
}

.hero-cta {
    margin-top: 0;  
    display: flex;
    gap: 2rem;
    justify-content: center;
}

.primary-btn, .secondary-btn {
    padding: 1rem 2rem;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.primary-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(255, 69, 0, 0.3);
}

.primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 69, 0, 0.4);
}

.secondary-btn {
    background: transparent;
    color: var(--accent-color);
    border: 2px solid var(--accent-color);
}

.secondary-btn:hover {
    background: rgba(255, 69, 0, 0.1);
    transform: translateY(-2px);
}

.hero-visual {
    position: absolute;
    right: 10%;
    top: 45%;  
    width: 400px;
    height: 400px;
    z-index: 1;
    transform: translateY(-50px);  
}

.floating-elements {
    position: relative;
    width: 100%;
    height: 100%;
}

.ai-symbol, .code-element, .data-flow {
    position: absolute;
    background: rgba(139, 0, 0, 0.2);
    border: 1px solid rgba(255, 69, 0, 0.3);
    border-radius: 10px;
    backdrop-filter: blur(5px);
}

.ai-symbol {
    width: 150px;
    height: 150px;
    right: 20px;
    top: 0;  
}

.code-element {
    width: 100px;
    height: 100px;
    right: 180px;
    top: 80px;  
}

.data-flow {
    width: 120px;
    height: 120px;
    right: 100px;
    top: 160px;  
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    color: white;
    text-align: center;
}

.mouse {
    width: 30px;
    height: 50px;
    border: 2px solid white;
    border-radius: 15px;
    margin: 0 auto;
    position: relative;
}

.wheel {
    width: 4px;
    height: 8px;
    background: white;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
    animation: scroll 2s infinite;
}

.arrows {
    margin-top: 1rem;
}

.arrows span {
    display: block;
    width: 10px;
    height: 10px;
    border-bottom: 2px solid white;
    border-right: 2px solid white;
    transform: rotate(45deg);
    margin: -5px auto;
    animation: arrow 2s infinite;
}

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

@keyframes nodeFloat {
    from {
        background-position: 0 0, 0 0;
    }
    to {
        background-position: 40px 40px, 20px 20px;
    }
}

@keyframes glitch {
    0%, 100% {
        transform: translate(0);
        text-shadow: 0 0 10px rgba(128, 0, 32, 0.5);
    }
    98% {
        transform: translate(0);
        text-shadow: 0 0 10px rgba(128, 0, 32, 0.5);
    }
    99% {
        transform: translate(2px, 2px);
        text-shadow: -2px -2px 10px rgba(255, 87, 51, 0.5);
    }
}

@keyframes spin {
    10% {
        transform: translateY(-112%);
    }
    25% {
        transform: translateY(-100%);
    }
    35% {
        transform: translateY(-212%);
    }
    50% {
        transform: translateY(-200%);
    }
    60% {
        transform: translateY(-312%);
    }
    75% {
        transform: translateY(-300%);
    }
    85% {
        transform: translateY(-412%);
    }
    100% {
        transform: translateY(-400%);
    }
}

@keyframes scroll {
    0% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }
}

@keyframes arrow {
    0% {
        opacity: 0;
        transform: rotate(45deg) translate(-20px, -20px);
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: rotate(45deg) translate(20px, 20px);
    }
}

@keyframes rotate {
    from {
        transform: rotate(0deg) scale(1);
    }
    to {
        transform: rotate(360deg) scale(1.5);
    }
}

@keyframes glitch-1 {
    0% {
        transform: translate(0);
    }
    33% {
        transform: translate(-2px, 1px);  
    }
    66% {
        transform: translate(2px, -1px);  
    }
    100% {
        transform: translate(0);
    }
}

@keyframes glitch-2 {
    0% {
        transform: translate(0);
    }
    33% {
        transform: translate(2px, -1px);  
    }
    66% {
        transform: translate(-2px, 1px);  
    }
    100% {
        transform: translate(0);
    }
}

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

@keyframes floatName {
    0%, 100% {
        transform: translateZ(0);
    }
    50% {
        transform: translateZ(50px);
    }
}

@keyframes glowPulse {
    0%, 100% {
        opacity: 0.5;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
}

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

@keyframes connectionPulse {
    0%, 100% {
        opacity: 0.3;
    }
    50% {
        opacity: 0.8;
    }
}

@keyframes particleFloat {
    0% {
        transform: translate(0, 0);
    }
    25% {
        transform: translate(10px, -10px);
    }
    50% {
        transform: translate(0, 0);
    }
    75% {
        transform: translate(-10px, 10px);
    }
    100% {
        transform: translate(0, 0);
    }
}

@keyframes nodeFloat {
    0% {
        background-position: 0 0, 0 0;
    }
    100% {
        background-position: 30px 30px, 15px 15px;
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .hero-visual {
        height: 300px;
    }

    .glitch {
        font-size: 3rem;
    }

    .hero-cta {
        justify-content: center;
    }
}

/* Social Links */
.social-links {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-top: 2rem;
}

.social-icon {
    color: white;
    font-size: 1.5rem;
    transition: var(--transition);
}

.social-icon:hover {
    transform: translateY(-3px);
}

/* Sections */
section {
    padding: 6rem 0;
}

h2 {
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: -1px;
    text-align: center;
    color: var(--text-color);
    text-shadow: var(--text-shadow);
}

/* About Section */
.about-content {
    display: flex;
    gap: 4rem;
    align-items: center;
    justify-content: center;
}

.about-text {
    max-width: 600px;
}

.skills {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
}

.skill-tag {
    background: var(--gradient-2);
    color: white;
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(255, 69, 0, 0.2);
    transition: var(--transition);
}

.skill-tag:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(255, 69, 0, 0.3);
}

/* Projects Section */
.projects-section {
    position: relative;
    min-height: 100vh;
    width: 100vw;
    background: linear-gradient(135deg, var(--bg-color) 0%, var(--bg-color-dark) 100%);
    overflow: hidden;
    margin: 0;
    padding: 6rem 0 0 0;  /* Added top padding to account for fixed header */
    left: 0;
    right: 0;
}

.projects-section .circuit-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.1;
    z-index: 1;
}

.projects-section .squares {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.section-header {
    width: 100%;
    text-align: center;
    margin: 4rem auto;
    position: relative;
    z-index: 2;
    padding: 0 2rem;
}

.section-header h1 {
    font-weight: bold;
    font-size: 3.5rem;
    color: #ffffff;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.section-header p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 600px;
    margin: 0 auto;
}

.projects-grid {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1200px;
    margin: 2rem auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 0 2rem;
}

.project-card {
    background: linear-gradient(135deg, rgba(139, 0, 0, 0.2), rgba(255, 69, 0, 0.2));
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 69, 0, 0.1);
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px 0 rgba(139, 0, 0, 0.2);
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 45px 0 rgba(139, 0, 0, 0.3);
    border: 1px solid rgba(255, 69, 0, 0.2);
}

.project-content {
    padding: 1.5rem;
}

.project-content h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.project-tags {
    display: flex;
    gap: 0.5rem;
    margin: 1rem 0;
}

.project-tags span {
    background: var(--gradient-2);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    box-shadow: 0 2px 10px rgba(255, 69, 0, 0.2);
    transition: var(--transition);
}

.project-tags span:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 69, 0, 0.3);
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.project-link:hover {
    gap: 0.75rem;
}

/* Contact Section */
.contact {
    background: var(--gray-light);
    text-align: center;
}

.contact-content {
    max-width: 600px;
    margin: 0 auto;
}

.cta-button {
    display: inline-block;
    background: var(--gradient-1);
    color: white;
    padding: 1rem 2rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    margin-top: 2rem;
    transition: var(--transition);
}

.cta-button:hover {
    background: var(--gradient-2);
    transform: translateY(-2px);
}

/* Footer */
.footer {
    padding: 2rem 0;
    text-align: center;
    background: transparent;
    position: relative;
    z-index: 2;
}

.footer p {
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    font-size: 1rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

footer .social-icon {
    color: white;
    opacity: 0.8;
}

footer .social-icon:hover {
    opacity: 1;
}

/* Animations */
@keyframes moveBackground {
    from {
        background-position: 0 0;
    }
    to {
        background-position: 100% 100%;
    }
}

@keyframes blink {
    from, to {
        border-color: transparent;
    }
    50% {
        border-color: var(--accent-color);
    }
}

/* Additional modern elements */
.glass-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 2rem;
    transition: var(--transition);
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--neon-shadow);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 3rem;
    }
    
    .subtitle {
        font-size: 1.2rem;
    }
    
    .nav-links {
        gap: 1rem;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

/* Profile Image */
.profile-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 2rem 0;
}

.profile-image {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid rgba(255, 69, 0, 0.3);
    box-shadow: 
        0 0 20px rgba(139, 0, 0, 0.3),
        0 0 40px rgba(255, 69, 0, 0.2);
    animation: profileGlow 4s ease-in-out infinite;
    position: relative;
    background: var(--bg-color);
}

.hero-profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-image::before {
    content: '';
    position: absolute;
    inset: -10px;
    background: radial-gradient(
        circle at center,
        rgba(255, 69, 0, 0.2) 0%,
        rgba(139, 0, 0, 0.2) 50%,
        transparent 70%
    );
    filter: blur(10px);
    z-index: -1;
}

.hero-profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.02);
    transition: transform 0.3s ease;
    filter: brightness(1.05) contrast(1.05);
}

.profile-image:hover .hero-profile-img {
    transform: scale(1.1);
}

@keyframes profileGlow {
    0%, 100% {
        box-shadow: 
            0 0 20px rgba(139, 0, 0, 0.3),
            0 0 40px rgba(255, 69, 0, 0.2);
    }
    50% {
        box-shadow: 
            0 0 30px rgba(139, 0, 0, 0.4),
            0 0 60px rgba(255, 69, 0, 0.3);
    }
}

/* Biography Section */
.bio-section {
    max-width: 800px;
    margin: 1rem 0 0;  
    width: 100%;
    padding-left: 0;
}

.bio-text {
    font-size: 1.1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
    text-align: left;
    font-weight: 300;
    letter-spacing: 0.3px;
    margin-left: 0;
    padding-left: 0;
    margin-bottom: 0.5rem;  
}

.full-width-cta {
    grid-column: 1 / -1;  
    text-align: center;
    margin: 2rem 0;
    padding: 0 2rem;
}

.cta-heading {
    font-size: 2rem;
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1.5rem;
    font-weight: 600;
    text-align: center;
    filter: drop-shadow(0 0 10px rgba(255, 69, 0, 0.3));
}

.projects-section {
    padding: 8rem 2rem 4rem;
    max-width: 1200px;
    margin: 0 auto;
}

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

.section-header h2 {
    font-size: 2.5rem;
    color: #ffffff;
    margin-bottom: 1rem;
    font-weight: 600;
}

.section-subtitle {
    color: var(--accent-color);
    font-size: 1.2rem;
    opacity: 0.9;
}

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

.project-card {
    background: rgba(30, 30, 30, 0.3);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 69, 0, 0.1);
    backdrop-filter: blur(10px);
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(255, 69, 0, 0.1);
}

.project-image {
    width: 100%;
    height: 250px;  /* Increased from 200px to 250px (25% increase) */
    overflow: hidden;
    position: relative;
    background: rgba(0, 0, 0, 0.1);
}

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

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

.project-content {
    padding: 1.5rem;
}

.project-content h3 {
    font-size: 1.4rem;
    color: #ffffff;
    margin-bottom: 1rem;
    font-weight: 600;
}

.project-content p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

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

.project-tech span {
    background: rgba(255, 69, 0, 0.1);
    color: var(--accent-color);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.9rem;
}

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

.project-links a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

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

.project-links i {
    font-size: 1.1rem;
}

@media (max-width: 768px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }
}

.contact-section {
    min-height: 100vh;
    position: relative;
    overflow: hidden;
    padding: 6rem 2rem;
    background: var(--bg-color);
}

.contact-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    background: rgba(30, 30, 30, 0.3);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 3rem;
    border: 1px solid rgba(255, 69, 0, 0.1);
    box-shadow: 0 8px 32px 0 rgba(139, 0, 0, 0.2);
}

.contact-header {
    text-align: center;
    margin-bottom: 3rem;
}

.contact-header h1 {
    font-size: 2.5rem;
    color: #ffffff;
    margin-bottom: 1rem;
}

.contact-header p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.contact-form {
    max-width: 800px;
    margin: 0 auto;
}

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

.input-group {
    position: relative;
}

.input-group input,
.input-group textarea,
.input-group select {
    width: 100%;
    padding: 1rem;
    padding-left: 3rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 69, 0, 0.2);
    border-radius: 10px;
    color: var(--accent-color);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.input-group textarea {
    min-height: 150px;
    resize: vertical;
}

.input-group label {
    position: absolute;
    left: 3rem;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.6);
    transition: all 0.3s ease;
    pointer-events: none;
}

.input-group textarea + label {
    top: 1rem;
    transform: none;
}

.input-group input:focus,
.input-group textarea:focus,
.input-group select:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--accent-color);
    outline: none;
}

.input-group input:focus + label,
.input-group textarea:focus + label,
.input-group input:not(:placeholder-shown) + label,
.input-group textarea:not(:placeholder-shown) + label {
    top: -0.5rem;
    left: 1rem;
    font-size: 0.8rem;
    color: var(--accent-color);
    background: var(--bg-color);
    padding: 0 0.5rem;
}

.input-group i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--accent-color);
    font-size: 1.2rem;
}

.input-group textarea + i {
    top: 1.2rem;
    transform: none;
}

.input-group select {
    width: 100%;
    padding: 1rem;
    padding-left: 3rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 69, 0, 0.2);
    border-radius: 10px;
    color: var(--accent-color);
    font-size: 1rem;
    transition: all 0.3s ease;
    appearance: none;
    cursor: pointer;
}

.input-group select option {
    background: var(--bg-color);
    color: var(--accent-color);
    padding: 1rem;
}

.input-group select:focus {
    border-color: var(--accent-color);
    outline: none;
    background: rgba(255, 255, 255, 0.15);
}

.input-group select + i {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    transition: all 0.3s ease;
    color: var(--accent-color);
}

.input-group select:focus + i {
    color: var(--accent-color);
}

.submit-btn {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border: none;
    border-radius: 10px;
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 69, 0, 0.3);
}

.submit-btn i {
    font-size: 1.2rem;
}

.contact-info {
    margin-top: 4rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    text-align: center;
}

.info-item {
    padding: 2rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    border: 1px solid rgba(255, 69, 0, 0.1);
}

.info-item i {
    font-size: 2rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.info-item h3 {
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.info-item p {
    color: rgba(255, 255, 255, 0.8);
}

@media (max-width: 768px) {
    .contact-container {
        padding: 2rem;
    }

    .contact-header h1 {
        font-size: 2rem;
    }

    .contact-info {
        grid-template-columns: 1fr;
    }
}

.services-section {
    min-height: 100vh;
    padding: 8rem 0 4rem;
    position: relative;
    overflow: hidden;
    background: var(--bg-color);
    width: 100%;
}

.services-grid {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    padding: 2rem;
}

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

.service-card:nth-child(1) {
    border-color: rgba(106, 90, 205, 0.3);
}

.service-card:nth-child(1) .service-icon {
    background: rgba(106, 90, 205, 0.1);
    color: rgb(106, 90, 205);
}

.service-card:nth-child(1):hover {
    border-color: rgb(106, 90, 205);
    box-shadow: 0 8px 32px rgba(106, 90, 205, 0.2);
}

.service-card:nth-child(1):hover .service-icon {
    background: rgb(106, 90, 205);
    color: white;
}

.service-card:nth-child(1) .service-features li i {
    color: rgb(106, 90, 205);
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
    box-shadow: 0 8px 32px rgba(255, 69, 0, 0.2);
}

.service-icon {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
    background: rgba(255, 69, 0, 0.1);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    background: var(--accent-color);
    color: white;
    transform: scale(1.1);
}

.service-card h3 {
    font-size: 1.5rem;
    color: #ffffff;
    margin-bottom: 1rem;
}

.service-card p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.service-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.service-features li {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.service-features li i {
    color: var(--accent-color);
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
        padding: 1rem;
    }
    
    .service-card {
        padding: 1.5rem;
    }
}

.binary-rain {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.binary {
    position: absolute;
    color: rgba(255, 69, 0, 0.4);  
    font-family: monospace;
    font-size: 20px;  
    font-weight: bold;  
    user-select: none;
    animation: fall linear infinite;
    text-shadow: 0 0 5px rgba(255, 69, 0, 0.3);  
}

@keyframes fall {
    0% {
        transform: translateY(-100%);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(1000%);
        opacity: 0;
    }
}

.dream-heading {
    text-align: center;
    margin: 1.5rem 0;
    font-size: 1.8rem;
    font-weight: 600;
    background: linear-gradient(45deg, var(--accent-color) 0%, #ff8c42 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 0.3s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin: 2rem 0;
}

.dream-heading {
    text-align: center;
    margin-top: 2rem;
    font-size: 1.8rem;
    font-weight: 600;
    background: linear-gradient(45deg, var(--accent-color) 0%, #ff8c42 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease forwards;
    animation-delay: 0.3s;
}
