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

:root {
    --primary: #0A0A0A;
    --secondary: #1A1A1A;
    --accent: #2D2D2D;
    --text: #FAFAFA;
    --text-muted: #A0A0A0;
    --gold: #D4AF37;
}

[data-theme="light"] {
    --primary: #FFFFFF;
    --secondary: #F0F4FF;
    --accent: #E3EBFF;
    --text: #1A2B5C;
    --text-muted: #5A6B8C;
    --gold: #2563EB;
}

body {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--primary);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        radial-gradient(ellipse at 20% 30%, rgba(138, 43, 226, 0.15) 0%, transparent 40%),
        radial-gradient(ellipse at 80% 70%, rgba(75, 0, 130, 0.15) 0%, transparent 40%),
        radial-gradient(ellipse at 50% 50%, rgba(25, 25, 112, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 10% 80%, rgba(72, 61, 139, 0.12) 0%, transparent 40%),
        radial-gradient(ellipse at 90% 20%, rgba(147, 112, 219, 0.1) 0%, transparent 40%);
    z-index: -1;
    animation: galaxyMove 60s ease-in-out infinite;
}

[data-theme="light"] body::before {
    background: 
        radial-gradient(ellipse at 20% 30%, rgba(99, 102, 241, 0.08) 0%, transparent 40%),
        radial-gradient(ellipse at 80% 70%, rgba(59, 130, 246, 0.08) 0%, transparent 40%),
        radial-gradient(ellipse at 50% 50%, rgba(37, 99, 235, 0.05) 0%, transparent 50%),
        radial-gradient(ellipse at 10% 80%, rgba(96, 165, 250, 0.06) 0%, transparent 40%),
        radial-gradient(ellipse at 90% 20%, rgba(147, 197, 253, 0.05) 0%, transparent 40%);
}

@keyframes galaxyMove {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    25% {
        transform: translate(5%, 5%) rotate(1deg);
    }
    50% {
        transform: translate(0, 10%) rotate(2deg);
    }
    75% {
        transform: translate(-5%, 5%) rotate(1deg);
    }
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(2px 2px at 20% 30%, white, transparent),
        radial-gradient(2px 2px at 60% 70%, white, transparent),
        radial-gradient(1px 1px at 50% 50%, white, transparent),
        radial-gradient(1px 1px at 80% 10%, white, transparent),
        radial-gradient(2px 2px at 90% 60%, white, transparent),
        radial-gradient(1px 1px at 33% 50%, white, transparent),
        radial-gradient(1px 1px at 75% 85%, white, transparent),
        radial-gradient(1px 1px at 15% 60%, white, transparent),
        radial-gradient(2px 2px at 45% 20%, white, transparent),
        radial-gradient(1px 1px at 65% 45%, white, transparent),
        radial-gradient(2px 2px at 90% 60%, white, transparent),
        radial-gradient(1px 1px at 33% 50%, white, transparent),
        radial-gradient(1px 1px at 75% 85%, white, transparent),
        radial-gradient(1px 1px at 15% 60%, white, transparent),
        radial-gradient(2px 2px at 45% 20%, white, transparent),
        radial-gradient(1px 1px at 65% 45%, white, transparent),
        radial-gradient(1px 1px at 25% 75%, white, transparent),
        radial-gradient(2px 2px at 85% 35%, white, transparent),
        radial-gradient(1px 1px at 10% 15%, white, transparent),
        radial-gradient(1px 1px at 95% 80%, white, transparent),
        radial-gradient(2px 2px at 40% 90%, white, transparent),
        radial-gradient(1px 1px at 70% 25%, white, transparent),
        radial-gradient(1px 1px at 30% 40%, white, transparent),
        radial-gradient(1px 1px at 55% 65%, white, transparent),
        radial-gradient(2px 2px at 12% 88%, white, transparent),
        radial-gradient(1px 1px at 88% 50%, white, transparent);
    background-size: 200% 200%;
    animation: starsMove 120s linear infinite;
    z-index: -1;
    pointer-events: none;
    opacity: 0.4;
}

[data-theme="light"] body::after {
    background: 
        radial-gradient(2px 2px at 20% 30%, rgba(37, 99, 235, 0.6), transparent),
        radial-gradient(2px 2px at 60% 70%, rgba(37, 99, 235, 0.5), transparent),
        radial-gradient(1px 1px at 50% 50%, rgba(37, 99, 235, 0.6), transparent),
        radial-gradient(1px 1px at 80% 10%, rgba(37, 99, 235, 0.5), transparent),
        radial-gradient(2px 2px at 90% 60%, rgba(37, 99, 235, 0.4), transparent),
        radial-gradient(1px 1px at 33% 50%, rgba(37, 99, 235, 0.5), transparent),
        radial-gradient(1px 1px at 75% 85%, rgba(37, 99, 235, 0.4), transparent),
        radial-gradient(1px 1px at 15% 60%, rgba(37, 99, 235, 0.6), transparent),
        radial-gradient(2px 2px at 45% 20%, rgba(37, 99, 235, 0.5), transparent),
        radial-gradient(1px 1px at 65% 45%, rgba(37, 99, 235, 0.4), transparent),
        radial-gradient(1px 1px at 25% 75%, rgba(37, 99, 235, 0.5), transparent),
        radial-gradient(2px 2px at 85% 35%, rgba(37, 99, 235, 0.6), transparent),
        radial-gradient(1px 1px at 10% 15%, rgba(37, 99, 235, 0.4), transparent),
        radial-gradient(1px 1px at 75% 85%, rgba(37, 99, 235, 0.4), transparent),
        radial-gradient(1px 1px at 15% 60%, rgba(37, 99, 235, 0.6), transparent),
        radial-gradient(2px 2px at 45% 20%, rgba(37, 99, 235, 0.5), transparent),
        radial-gradient(1px 1px at 65% 45%, rgba(37, 99, 235, 0.4), transparent),
        radial-gradient(1px 1px at 25% 75%, rgba(37, 99, 235, 0.5), transparent),
        radial-gradient(2px 2px at 85% 35%, rgba(37, 99, 235, 0.6), transparent),
        radial-gradient(1px 1px at 95% 80%, rgba(37, 99, 235, 0.5), transparent),
        radial-gradient(2px 2px at 40% 90%, rgba(37, 99, 235, 0.6), transparent),
        radial-gradient(1px 1px at 70% 25%, rgba(37, 99, 235, 0.4), transparent),
        radial-gradient(1px 1px at 30% 40%, rgba(37, 99, 235, 0.5), transparent),
        radial-gradient(1px 1px at 55% 65%, rgba(37, 99, 235, 0.6), transparent),
        radial-gradient(2px 2px at 12% 88%, rgba(37, 99, 235, 0.5), transparent),
        radial-gradient(1px 1px at 88% 50%, rgba(37, 99, 235, 0.4), transparent);
    background-size: 200% 200%;
    opacity: 0.5;
}

@keyframes starsMove {
    from {
        background-position: 0 0;
    }
    to {
        background-position: 100% 100%;
    }
}

/* Portfolio Modal */
.portfolio-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.portfolio-modal.active {
    display: flex;
    opacity: 1;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
}

.modal-content {
    position: relative;
    max-width: 1200px;
    width: 90%;
    max-height: 90vh;
    background: var(--secondary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    overflow: hidden;
    animation: modalSlideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10000;
}

@keyframes modalSlideIn {
    from {
        transform: scale(0.9) translateY(50px);
        opacity: 0;
    }
    to {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 44px;
    height: 44px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    z-index: 10001;
}

.modal-close:hover {
    background: rgba(0, 0, 0, 0.8);
    border-color: var(--gold);
    transform: rotate(90deg);
}

.modal-close svg {
    color: var(--text);
}

.modal-image-container {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.modal-info {
    padding: 4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow-y: auto;
}

.modal-category {
    font-size: 0.85rem;
    color: var(--gold);
    letter-spacing: 2px;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.modal-title {
    font-size: 2.5rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
    line-height: 1.2;
}

.modal-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-muted);
    margin-bottom: 3rem;
}

.modal-view-btn {
    align-self: flex-start;
    display: inline-flex;
}

/* Responsive Modal */
@media (max-width: 1024px) {
    .modal-content {
        grid-template-columns: 1fr;
        max-height: 85vh;
        overflow-y: auto;
    }
    
    .modal-image-container {
        height: 400px;
        min-height: 400px;
    }
    
    .modal-info {
        padding: 3rem 2rem;
    }
    
    .modal-title {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .modal-content {
        width: 95%;
    }
    
    .modal-image-container {
        height: 300px;
        min-height: 300px;
    }
    
    .modal-info {
        padding: 2rem 1.5rem;
    }
    
    .modal-title {
        font-size: 1.8rem;
    }
    
    .modal-description {
        font-size: 1rem;
    }
    
    .modal-close {
        top: 1rem;
        right: 1rem;
        width: 40px;
        height: 40px;
    }
}
/* Mobile Modal - Button in Image */
@media (max-width: 1024px) {
    .modal-content {
        grid-template-columns: 1fr;
        max-height: 85vh;
        overflow-y: auto;
    }
    
    .modal-image-container {
        height: 400px;
        min-height: 400px;
        position: relative;
    }
    
    .modal-image-container .modal-view-btn {
        position: absolute;
        bottom: 2rem;
        left: 50%;
        transform: translateX(-50%);
        z-index: 10;
        display: inline-flex;
    }
    
    .modal-info {
        padding: 3rem 2rem;
    }
    
    .modal-info .modal-view-btn {
        display: none !important;
    }
    
    .modal-title {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .modal-content {
        width: 95%;
    }
    
    .modal-image-container {
        height: 300px;
        min-height: 300px;
    }
    
    .modal-image-container .modal-view-btn {
        bottom: 1.5rem;
    }
    
    .modal-info {
        padding: 2rem 1.5rem;
    }
    
    .modal-title {
        font-size: 1.8rem;
    }
    
    .modal-description {
        font-size: 1rem;
    }
    
    .modal-close {
        top: 1rem;
        right: 1rem;
        width: 40px;
        height: 40px;
    }
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="light"] nav {
    background: rgba(255, 255, 255, 0.8);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

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

.logo {
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--text);
}

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

.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: color 0.3s;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--gold);
    transition: width 0.3s;
}

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

.nav-links a:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 6px;
}

.menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text);
    transition: all 0.3s;
}

.theme-toggle {
    background: rgba(212, 175, 55, 0.1);
    border: 2px solid var(--gold);
    padding: 0.6rem;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    position: relative;
    width: 44px;
    height: 44px;
    margin-left: 1.5rem;
    box-shadow: 0 2px 10px rgba(212, 175, 55, 0.2);
}

.theme-toggle:hover {
    background: rgba(212, 175, 55, 0.2);
    border-color: var(--gold);
    transform: rotate(20deg) scale(1.1);
    box-shadow: 0 4px 20px rgba(212, 175, 55, 0.4);
}

.theme-toggle svg {
    position: absolute;
    transition: all 0.3s;
    color: var(--gold);
    stroke-width: 2.5;
}

.sun-icon {
    opacity: 0;
    transform: rotate(-90deg) scale(0);
}

.moon-icon {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

[data-theme="light"] .sun-icon {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

[data-theme="light"] .moon-icon {
    opacity: 0;
    transform: rotate(90deg) scale(0);
}

[data-theme="light"] .theme-toggle {
    background: rgba(37, 99, 235, 0.1);
    border-color: var(--gold);
    box-shadow: 0 2px 10px rgba(37, 99, 235, 0.2);
}

[data-theme="light"] .theme-toggle:hover {
    background: rgba(2, 54, 166, 0.2);
    border-color: var(--gold);
    box-shadow: 0 4px 20px rgba(37, 99, 235, 0.4);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6rem;
    padding: 0 4rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(90deg, rgba(212, 175, 55, 0.03) 1px, transparent 1px),
        linear-gradient(180deg, rgba(212, 175, 55, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: circuitMove 20s linear infinite;
    z-index: 0;
}

.hero::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -10%;
    width: 600px;
    height: 600px;
    /*background: radial-gradient(circle, rgba(212, 175, 55, 0.1) 0%, transparent 70%);*/
    border-radius: 50%;
    animation: float 20s ease-in-out infinite;
    z-index: 0;
}

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

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

.circuit-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    z-index: 0;
}

.circuit-line {
    position: absolute;
    background: rgba(212, 175, 55, 0.15);
    opacity: 0.5;
}

.circuit-line:nth-child(1) {
    width: 2px;
    height: 150px;
    top: 20%;
    left: 15%;
    animation: lineFloat1 8s ease-in-out infinite;
}

.circuit-line:nth-child(2) {
    width: 200px;
    height: 2px;
    top: 60%;
    right: 20%;
    animation: lineFloat2 10s ease-in-out infinite;
}

.circuit-line:nth-child(3) {
    width: 2px;
    height: 120px;
    bottom: 25%;
    right: 30%;
    animation: lineFloat3 12s ease-in-out infinite;
}

.circuit-dot {
    position: absolute;
    width: 8px;
    height: 8px;
    background: var(--gold);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

.circuit-dot:nth-child(4) {
    top: 20%;
    left: 15%;
    animation: pulse 2s ease-in-out infinite, dotFloat1 8s ease-in-out infinite;
}

.circuit-dot:nth-child(5) {
    top: 35%;
    left: 15%;
    animation: pulse 2.5s ease-in-out infinite 0.5s, dotFloat2 9s ease-in-out infinite;
}

.circuit-dot:nth-child(6) {
    top: 60%;
    right: 20%;
    animation: pulse 3s ease-in-out infinite 1s, dotFloat3 10s ease-in-out infinite;
}

.circuit-dot:nth-child(7) {
    top: 60%;
    right: 40%;
    animation: pulse 2.8s ease-in-out infinite 1.5s, dotFloat4 11s ease-in-out infinite;
}

.circuit-dot:nth-child(8) {
    bottom: 25%;
    right: 30%;
    animation: pulse 3.2s ease-in-out infinite 2s, dotFloat5 12s ease-in-out infinite;
}

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

@keyframes lineFloat1 {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

@keyframes lineFloat2 {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(20px); }
}

@keyframes lineFloat3 {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(20px); }
}

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

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

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

@keyframes dotFloat4 {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-15px, -5px); }
}

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

.hero-content {
    flex: 1;
    max-width: 700px;
    position: relative;
    z-index: 1;
}

/* Hero Image - Full Height */
.hero-image {
    flex: 0 0 auto;
    width: auto;
    height: calc(100vh - 100px);  /* Full viewport height minus some spacing */
    max-width: 600px;
    position: relative;
    z-index: 1;
    animation: fadeInRight 1s ease 0.4s backwards;
    align-self: flex-end;
    margin-bottom: 0;
}

.hero-image img {
    width: auto;
    height: 100%;       /* Full height of container */
    max-width: 100%;
    display: block;
    object-fit: contain;  /* Maintains aspect ratio */
    transition: transform 0.5s;
}

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

/* Responsive adjustments */
@media (max-width: 1024px) {
    .hero-image {
        width: 500px;
        height: 60vh;
        align-self: center;
        margin-bottom: 0;
    }
}

@media (max-width: 768px) {
    .hero-image {
        height: 65vh;
        width: 100%;
        max-width: 500px;
    }
}

@media (max-width: 480px) {
    .hero-image {
        height: 55vh;
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
    }
    
    .hero-image img {
        object-fit: cover;
        object-position: center top;
    }
}
@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.hero-label {
    font-size: 0.85rem;
    letter-spacing: 3px;
    color: var(--gold);
    margin-bottom: 2rem;
    text-transform: uppercase;
    font-weight: 500;
    animation: fadeInUp 0.8s ease;
}

.hero h1 {
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 300;
    line-height: 1.1;
    margin-bottom: 2rem;
    letter-spacing: -2px;
    animation: fadeInUp 0.8s ease 0.2s backwards;
}

.hero h1 strong {
    font-weight: 600;
    display: block;
}

.hero-description {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 600px;
    margin-bottom: 3rem;
    line-height: 1.8;
    animation: fadeInUp 0.8s ease 0.4s backwards;
}

.hero-cta {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease 0.6s backwards;
}

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

.btn-primary, .btn-secondary {
    padding: 0.80rem .25rem;
    text-decoration: none;
    border-radius: 0;
    font-weight: 500;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid;
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-primary::before,
.btn-secondary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(212, 175, 55, 0.1);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-primary:hover::before,
.btn-secondary:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: var(--text);
    color: var(--primary);
    border-color: var(--text);
}

.btn-primary:hover {
    background: black;
    color: var(--text);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.2);
}

.btn-secondary {
    background: transparent;
    color: var(--text);
    border-color: rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    border-color: var(--gold);
    color: var(--gold);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.15);
}

/* About Section */
.about {
    padding: 8rem 4rem;
    max-width: 1400px;
    margin: 0 auto;
}

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

.section-label {
    font-size: 0.85rem;
    letter-spacing: 2px;
    color: var(--gold);
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.section-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 300;
    letter-spacing: -1px;
    margin-bottom: 2rem;
}

.about-grid {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 6rem;
    align-items: start;
}

.about-image-container {
    width: 100%;
    aspect-ratio: 3/4;
    overflow: hidden;
    border-radius: 2px;
    position: relative;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.about-image-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 2px solid rgba(255, 255, 255, 0.1);
    pointer-events: none;
    transition: border-color 0.3s;
}

.about-image-container:hover {
    transform: scale(1.02);
}

.about-image-container:hover::after {
    border-color: var(--gold);
}

.about-image-container img{
width: 100%;
height: 100%;
object-fit: cover;
display: block;
filter: grayscale(0%);
transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), filter 0.3s;
}
.about-image-container:hover img {
transform: scale(1.05);
}
.about-content p {
font-size: 1.1rem;
line-height: 2;
color: var(--text-muted);
margin-bottom: 1.5rem;
text-align: justify;
text-justify: inter-word;
}
.education-section {
margin-top: 3rem;
padding-top: 3rem;
border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.education-label {
font-size: 0.85rem;
letter-spacing: 2px;
color: var(--gold);
margin-bottom: 1.5rem;
text-transform: uppercase;
}
.education-item {
margin-bottom: 1.5rem;
}
.education-item h4 {
font-size: 1.2rem;
font-weight: 500;
margin-bottom: 0.5rem;
letter-spacing: -0.5px;
text-align: justify;
text-justify: inter-word;
}
.education-item p {
font-size: 1rem;
color: var(--text-muted);
text-align: justify;
text-justify: inter-word;
}
.stats {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 3rem;
margin-top: 4rem;
padding-top: 3rem;
border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.stat {
text-align: left;
transition: transform 0.3s;
cursor: default;
}
.stat:hover {
transform: translateY(-5px);
}
.stat-number {
font-size: 3rem;
font-weight: 600;
color: var(--gold);
line-height: 1;
margin-bottom: 0.5rem;
transition: transform 0.3s;
}
.stat:hover .stat-number {
transform: scale(1.1);
text-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
}
.stat-label {
font-size: 0.9rem;
color: var(--text-muted);
letter-spacing: 0.5px;
}
/* Expertise Section */
.expertise {
padding: 8rem 4rem;
background: var(--secondary);
}
.expertise-container {
max-width: 1400px;
margin: 0 auto;
}
.expertise-grid {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 0;
margin-top: 4rem;
}
.expertise-item {
padding: 3rem;
border: 1px solid rgba(255, 255, 255, 0.05);
transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
position: relative;
}
.expertise-item::before {
content: '';
position: absolute;
top: 0;
left: 0;
width: 0;
height: 100%;
background: linear-gradient(90deg, rgba(212, 175, 55, 0.05) 0%, transparent 100%);
transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.expertise-item:hover {
background: rgba(255, 255, 255, 0.02);
border-color: rgba(212, 175, 55, 0.3);
transform: translateX(10px);
}
.expertise-item:hover::before {
width: 100%;
}
.expertise-number {
font-size: 0.9rem;
color: var(--gold);
margin-bottom: 1.5rem;
letter-spacing: 1px;
transition: transform 0.3s;
}
.expertise-item:hover .expertise-number {
transform: scale(1.1);
}
.expertise-item h3 {
font-size: 1.5rem;
font-weight: 500;
margin-bottom: 1rem;
letter-spacing: -0.5px;
transition: color 0.3s;
}
.expertise-item:hover h3 {
color: var(--gold);
}
.expertise-item p {
color: var(--text-muted);
line-height: 1.8;
font-size: 0.95rem;
}
/* Software Tools Section */
.software-section {
margin-top: 4rem;
}
.software-list {
display: flex;
justify-content: center;
align-items: center;
gap: 4rem;
flex-wrap: wrap;
margin-top: 2rem;
}
.software-tool {
display: flex;
flex-direction: column;
align-items: center;
gap: 1rem;
transition: transform 0.3s ease;
cursor: pointer;
}
.software-tool:hover {
transform: translateY(-10px);
}
.software-tool img {
width: 60px;
height: 60px;
object-fit: contain;
transition: all 0.3s ease;
}
[data-theme="light"] .software-tool img {
filter: none;
}
.software-tool:hover img {
filter: none;
transform: scale(1.1);
}
.software-tool span {
color: var(--text-muted);
font-size: 0.9rem;
letter-spacing: 0.5px;
transition: color 0.3s;
}
.software-tool:hover span {
color: var(--text);
}
@media (max-width: 768px) {
.software-list {
gap: 3rem;
}
.software-tool img {
    width: 50px;
    height: 50px;
}

.software-tool span {
    font-size: 0.85rem;
}
}
/* Portfolio Section */
.portfolio {
padding: 8rem 4rem;
max-width: 1400px;
margin: 0 auto;
}
.portfolio-grid {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 2rem;
margin-top: 4rem;
}
.portfolio-item {
aspect-ratio: 4/3;
background: var(--secondary);
position: relative;
overflow: hidden;
cursor: pointer;
transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.portfolio-item img {
width: 100%;
height: 100%;
object-fit: cover;
transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.portfolio-item:hover img {
transform: scale(1.1);
}
.portfolio-item::before {
content: '';
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: rgba(0, 0, 0, 0.6);
opacity: 0;
transition: opacity 0.4s;
z-index: 1;
}
.portfolio-item::after {
content: '';
position: absolute;
top: 50%;
left: 50%;
width: 0;
height: 0;
background: radial-gradient(circle, rgba(212, 175, 55, 0.2) 0%, transparent 70%);
transform: translate(-50%, -50%);
border-radius: 50%;
transition: width 0.6s, height 0.6s;
z-index: 1;
}
.portfolio-item:hover {
transform: scale(1.02);
box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}
.portfolio-item:hover::before {
opacity: 1;
background: rgba(0, 0, 0, 0.7);
}
.portfolio-item:hover::after {
width: 500px;
height: 500px;
}
.portfolio-content {
position: absolute;
bottom: 0;
left: 0;
right: 0;
padding: 3rem;
background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, transparent 100%);
transform: translateY(20px);
opacity: 0;
transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
z-index: 2;
}
.portfolio-item:hover .portfolio-content {
transform: translateY(0);
opacity: 1;
}
.portfolio-category {
font-size: 0.85rem;
color: var(--gold);
letter-spacing: 1px;
margin-bottom: 0.5rem;
text-transform: uppercase;
transform: translateY(10px);
opacity: 0;
transition: all 0.4s 0.1s;
}
.portfolio-item:hover .portfolio-category {
transform: translateY(0);
opacity: 1;
}
.portfolio-content h3 {
font-size: 1.8rem;
font-weight: 500;
letter-spacing: -0.5px;
transform: translateY(10px);
opacity: 0;
transition: all 0.4s 0.2s;
}
.portfolio-item:hover .portfolio-content h3 {
transform: translateY(0);
opacity: 1;

}
/* Experience Section - Eye-Catching Design */
.experience {
    padding: 8rem 4rem;
    background: var(--secondary);
    position: relative;
    overflow: hidden;
}

.experience::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    animation: experienceFloat 15s ease-in-out infinite;
}

.experience::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -15%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(138, 43, 226, 0.06) 0%, transparent 70%);
    border-radius: 50%;
    animation: experienceFloat 20s ease-in-out infinite reverse;
}

@keyframes experienceFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(30px, -30px) scale(1.1); }
}

.experience-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

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

.experience .section-label {
    font-size: 0.85rem;
    letter-spacing: 3px;
    color: var(--gold);
    margin-bottom: 1rem;
    text-transform: uppercase;
    position: relative;
    display: inline-block;
}

.experience .section-label::before,
.experience .section-label::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 40px;
    height: 1px;
    background: var(--gold);
}

.experience .section-label::before {
    right: calc(100% + 15px);
}

.experience .section-label::after {
    left: calc(100% + 15px);
}

.timeline {
    margin-top: 4rem;
    position: relative;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

/* Central vertical line with gradient */
.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(
        to bottom,
        transparent,
        var(--gold) 20%,
        var(--gold) 80%,
        transparent
    );
    transform: translateX(-50%);
}

/* Animated dots on timeline */
.timeline::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    width: 12px;
    height: 12px;
    background: var(--gold);
    border-radius: 50%;
    transform: translateX(-50%);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.6);
    animation: timelinePulse 2s ease-in-out infinite;
}

@keyframes timelinePulse {
    0%, 100% {
        opacity: 1;
        transform: translateX(-50%) scale(1);
    }
    50% {
        opacity: 0.5;
        transform: translateX(-50%) scale(1.5);
    }
}

.timeline-item {
    margin-bottom: 6rem;
    position: relative;
    width: 45%;
    padding: 2.5rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="light"] .timeline-item {
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(0, 0, 0, 0.08);
}
/* Portfolio text white in light theme */
[data-theme="light"] .portfolio-item .portfolio-category {
    color: white;
}

[data-theme="light"] .portfolio-item .portfolio-content h3 {
    color: white;
}

[data-theme="light"] .portfolio-item::before {
    background: rgba(0, 0, 0, 0.6);
}

[data-theme="light"] .portfolio-item:hover::before {
    background: rgba(0, 0, 0, 0.75);
}
/* Alternate left and right */
.timeline-item:nth-child(odd) {
    left: 0;
    text-align: right;
}

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

/* Decorative corner accents */
.timeline-item::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid var(--gold);
    transition: all 0.5s;
}

.timeline-item:nth-child(odd)::before {
    top: 0;
    right: 0;
    border-left: none;
    border-bottom: none;
}

.timeline-item:nth-child(even)::before {
    top: 0;
    left: 0;
    border-right: none;
    border-bottom: none;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid var(--gold);
    transition: all 0.5s;
}

.timeline-item:nth-child(odd)::after {
    bottom: 0;
    left: 0;
    border-right: none;
    border-top: none;
}

.timeline-item:nth-child(even)::after {
    bottom: 0;
    right: 0;
    border-left: none;
    border-top: none;
}

/* Center dot connector */
.timeline-item > *:first-child::before {
    content: '';
    position: absolute;
    top: 50%;
    width: 30px;
    height: 2px;
    background: linear-gradient(to right, var(--gold), transparent);
}

.timeline-item:nth-child(odd) > *:first-child::before {
    right: -30px;
}

.timeline-item:nth-child(even) > *:first-child::before {
    left: -30px;
    background: linear-gradient(to left, var(--gold), transparent);
}

/* Central timeline dot for each item */
.timeline-item > *:first-child::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 16px;
    height: 16px;
    background: var(--gold);
    border: 3px solid var(--secondary);
    border-radius: 50%;
    transform: translateY(-50%);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.6);
    transition: all 0.4s;
    z-index: 2;
}

[data-theme="light"] .timeline-item > *:first-child::after {
    border-color: var(--secondary);
}

.timeline-item:nth-child(odd) > *:first-child::after {
    right: -38px;
}

.timeline-item:nth-child(even) > *:first-child::after {
    left: -38px;
}

/* Hover effects */
.timeline-item:hover {
    transform: translateY(-10px) scale(1.02);
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(212, 175, 55, 0.3);
    box-shadow: 0 20px 60px rgba(212, 175, 55, 0.15);
}

[data-theme="light"] .timeline-item:hover {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(37, 99, 235, 0.3);
    box-shadow: 0 20px 60px rgba(37, 99, 235, 0.15);
}

.timeline-item:hover::before,
.timeline-item:hover::after {
    width: 30px;
    height: 30px;
}

.timeline-item:hover > *:first-child::after {
    width: 20px;
    height: 20px;
    box-shadow: 0 0 30px rgba(212, 175, 55, 1);
}

.timeline-year {
    font-size: 0.85rem;
    color: var(--gold);
    letter-spacing: 2px;
    margin-bottom: 1rem;
    text-transform: uppercase;
    font-weight: 600;
    position: relative;
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.3);
}

[data-theme="light"] .timeline-year {
    background: rgba(8, 59, 167, 0.1);
    border-color: rgba(0, 63, 198, 0.3);
    color: var(--gold);
}

.timeline-item h3 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
    letter-spacing: -0.5px;
    line-height: 1.3;
    transition: color 0.3s;
    background: linear-gradient(135deg, var(--text) 0%, var(--gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.timeline-item:hover h3 {
    -webkit-text-fill-color: var(--gold);
}

.timeline-company {
    font-size: 1.05rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-weight: 500;
    font-style: italic;
}

.timeline-item p {
    color: var(--text-muted);
    line-height: 1.9;
    font-size: 1rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .timeline {
        max-width: 100%;
        padding-left: 3rem;
    }

    .timeline::before {
        left: 0;
        transform: none;
    }

    .timeline::after {
        left: 0;
        transform: translateX(-50%);
    }

    .timeline-item {
        width: 100%;
        left: 0 !important;
        text-align: left;
        margin-bottom: 3rem;
    }

    .timeline-item > *:first-child::before {
        left: -30px !important;
        background: linear-gradient(to left, var(--gold), transparent);
    }

    .timeline-item > *:first-child::after {
        left: -38px !important;
        right: auto !important;
    }

    .timeline-item:nth-child(odd)::before,
    .timeline-item:nth-child(even)::before {
        top: 0;
        left: 0;
        border-right: none;
        border-bottom: none;
    }

    .timeline-item:nth-child(odd)::after,
    .timeline-item:nth-child(even)::after {
        bottom: 0;
        right: 0;
        left: auto;
        border-left: none;
        border-top: none;
    }
}

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

    .timeline {
        padding-left: 2rem;
    }

    .timeline-item {
        padding: 2rem 1.5rem;
    }

    .timeline-item h3 {
        font-size: 1.5rem;
    }

    .timeline-year {
        font-size: 0.75rem;
        padding: 0.4rem 1rem;
    }

    .experience .section-label::before,
    .experience .section-label::after {
        width: 30px;
    }
}
/* Footer */
footer {
padding: 3rem 4rem;
border-top: 1px solid rgba(255, 255, 255, 0.05);
}
.footer-container {
max-width: 1200px;
margin: 0 auto;
display: flex;
justify-content: space-between;
align-items: center;
}
.footer-text {
color: var(--text-muted);
font-size: 0.9rem;
}
.social-links {
display: flex;
gap: 3rem;
align-items: center;
}
.social-links a {
color: var(--text-muted);
text-decoration: none;
font-size: 1.1rem;
transition: color 0.3s;
letter-spacing: 0.5px;
display: flex;
align-items: center;
gap: 0.6rem;
}
.social-links a svg {
width: 20px;
height: 20px;
transition: transform 0.3s;
}
.social-links a:hover {
color: var(--text);
}
.social-links a:hover svg {
transform: translateY(-2px);
}
/* Responsive */
@media (max-width: 1024px) {
.nav-container {
padding: 1.5rem 2rem;
}
.hero {
    flex-direction: column;
    text-align: center;
    gap: 3rem;
}

.hero-content {
    max-width: 100%;
}

.hero-image {
    width: 400px;
    align-self: center;
    margin-bottom: 0;
}

.hero, .about, .expertise, .portfolio, .experience, .contact {
    padding: 6rem 2rem;
}

.about-grid, .contact-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
}

.about-image-container {
    max-width: 400px;
    margin: 0 auto;
}

.expertise-grid {
    grid-template-columns: 1fr;
}

.portfolio-grid {
    grid-template-columns: 1fr;
}

.stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}
}
/* Mobile Navigation - KEEP ONLY THIS VERSION */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
        z-index: 10001;
    }
    
    .theme-toggle {
        margin-left: auto;
        margin-right: 1rem;
        z-index: 10001;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 70%;
        max-width: 320px;
        background: var(--secondary);
        flex-direction: column;
        padding: 6rem 2.5rem;
        gap: 2rem;
        transition: right 0.4s ease;
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.5);
        z-index: 10000;
    }

    [data-theme="light"] .nav-links {
        background: var(--primary);
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
    }

    .nav-links.active {
        right: 0;
    }
    
    .nav-links a {
        font-size: 1.1rem;
    }


.hero {
    padding: 4rem 2rem;
}

.hero h1 {
    font-size: 2.5rem;
}

.hero-image {
    width: 350px;
}

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

.stats {
    grid-template-columns: 1fr;
}

.footer-container {
    flex-direction: column;
    gap: 2rem;
    text-align: center;
}
}
/* Contact Section */
.contact {
    padding: 8rem 4rem;
    max-width: 1400px;
    margin: 0 auto;
}

.contact-grid {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 8rem;
    margin-top: 4rem;
    align-items: start;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item h3 {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    letter-spacing: 0.5px;
}

.contact-item a {
    font-size: 1.5rem;
    color: var(--text);
    text-decoration: none;
    transition: color 0.3s;
}

.contact-item a:hover {
    color: var(--gold);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1.2rem 0;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text);
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-bottom-color: var(--gold);
    transform: translateX(5px);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
    transition: opacity 0.3s;
}

.form-group input:focus::placeholder,
.form-group textarea:focus::placeholder {
    opacity: 0.5;
}

/* Responsive for Contact Section */
@media (max-width: 1024px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    .contact {
        padding: 6rem 2rem;
    }
    
    .contact-item h3 {
        font-size: 0.9rem;
    }
    
    .contact-item a {
        font-size: 1.2rem;
    }
}
/* Mobile Navigation - Smaller Width */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }
    
    .theme-toggle {
        margin-left: auto;
        margin-right: 1rem;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 70%;  /* Changed from 80% to 70% */
        max-width: 320px;  /* Changed from 400px to 320px */
        background: var(--secondary);
        flex-direction: column;
        padding: 6rem 2.5rem;  /* Reduced horizontal padding */
        gap: 2rem;
        transition: right 0.4s;
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.5);
    }

    [data-theme="light"] .nav-links {
        background: var(--primary);
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
    }

    .nav-links.active {
        right: 0;
    }
    
    .nav-links a {
        font-size: 1rem;  /* Slightly adjusted for better readability */
    }

    .hero {
        padding: 4rem 2rem;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero-image {
        width: 350px;
    }

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

    .stats {
        grid-template-columns: 1fr;
    }

    .footer-container {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }
}/* Navigation Active State */
.nav-links a.active {
    color: var(--text) !important;
}

.nav-links a.active::after {
    width: 100%;
}

/* Light mode active state */
[data-theme="light"] .nav-links a.active {
    color: var(--text) !important;
}
/* Scroll Animation Styles */
.scroll-animate {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), 
                transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-animate.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.scroll-animate.animate-out {
    opacity: 0;
    transform: translateY(30px);
}

/* Different animation directions for variety */
.about-image-container.scroll-animate {
    transform: translateX(-50px);
}

.about-image-container.animate-in {
    transform: translateX(0);
}

.about-image-container.animate-out {
    transform: translateX(-30px);
}

.about-content.scroll-animate,
.contact-form.scroll-animate {
    transform: translateX(50px);
}

.about-content.animate-in,
.contact-form.animate-in {
    transform: translateX(0);
}

.about-content.animate-out,
.contact-form.animate-out {
    transform: translateX(30px);
}

/* Stagger effect is handled via inline styles in JS */
.expertise-item.scroll-animate,
.portfolio-item.scroll-animate {
    transform: translateY(60px) scale(0.95);
}

.expertise-item.animate-in,
.portfolio-item.animate-in {
    transform: translateY(0) scale(1);
}

.expertise-item.animate-out,
.portfolio-item.animate-out {
    transform: translateY(40px) scale(0.97);
}

/* Timeline special animation */
.timeline-item.scroll-animate {
    opacity: 0;
    transform: translateY(50px) scale(0.9);
}

.timeline-item.animate-in {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.timeline-item.animate-out {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
}

/* Stats counter animation */
.stat.scroll-animate {
    transform: translateY(40px) rotate(-5deg);
}

.stat.animate-in {
    transform: translateY(0) rotate(0deg);
}

.stat.animate-out {
    transform: translateY(30px) rotate(-3deg);
}

/* Section headers */
.section-header.scroll-animate {
    transform: translateY(30px);
    opacity: 0;
}

.section-header.animate-in {
    transform: translateY(0);
    opacity: 1;
}

.section-header.animate-out {
    transform: translateY(20px);
    opacity: 0.3;
}

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

/* Scroll to Top Button */
.scroll-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: var(--gold);
    border: 2px solid var(--gold);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(100px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
    box-shadow: 0 4px 20px rgba(212, 175, 55, 0.4);
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top:hover {
    background: transparent;
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(212, 175, 55, 0.6);
}

.scroll-top svg {
    color: var(--primary);
    transition: color 0.3s;
}

.scroll-top:hover svg {
    color: var(--gold);
    animation: arrowBounce 0.6s ease infinite;
}

@keyframes arrowBounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

[data-theme="light"] .scroll-top {
    background: var(--gold);
    border-color: var(--gold);
}

[data-theme="light"] .scroll-top svg {
    color: white;
}

[data-theme="light"] .scroll-top:hover svg {
    color: var(--gold);
}

@media (max-width: 768px) {
    .scroll-top {
        bottom: 1.5rem;
        right: 1.5rem;
        width: 45px;
        height: 45px;
    }
}

/* Footer */
footer {
padding: 3rem 4rem;
border-top: 1px solid rgba(255, 255, 255, 0.05);
}