:root {
    --primary-color: #ffffff;
    --secondary-color: #000000;
    --accent-color: #404040;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-hover: rgba(255, 255, 255, 0.08);
    --spacing: clamp(1rem, 5vw, 2rem);
    --nav-height: 70px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--primary-color);
    overflow-x: hidden;
    background: #000000;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Space Grotesk', sans-serif;
    letter-spacing: -0.02em;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #000000;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Animated Grid Background */
.animated-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 20s linear infinite;
}

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

.animated-bg::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.03) 0%, transparent 50%);
    animation: pulse 4s ease-in-out infinite;
}

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

/* Glass Effect */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

.theme-toggle-fab {
    position: fixed;
    bottom: 2.4rem;
    right: 2.4rem;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: linear-gradient(135deg, rgba(34, 34, 34, 0.9), rgba(12, 12, 12, 0.7));
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    cursor: pointer;
    z-index: 1300;
    box-shadow: 0 18px 40px -24px rgba(0, 0, 0, 0.65);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.theme-toggle-fab:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 46px -22px rgba(0, 0, 0, 0.7);
}

.theme-toggle-fab:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.6);
    outline-offset: 4px;
}

body[data-theme="light"] .theme-toggle-fab {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(235, 235, 235, 0.7));
    color: #111111;
    border-color: rgba(0, 0, 0, 0.1);
    box-shadow: 0 14px 30px -24px rgba(0, 0, 0, 0.22);
}

body[data-theme="light"] .theme-toggle-fab:hover {
    box-shadow: 0 18px 34px -22px rgba(0, 0, 0, 0.3);
}

@media (max-width: 768px) {
    .theme-toggle-fab {
        bottom: 1.6rem;
        right: 1.6rem;
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
}


body[data-theme="light"] {
    background: #ffffff;
    color: #111111;
    --primary-color: #111111;
    --secondary-color: #ffffff;
    --accent-color: #000000;
    --glass-bg: rgba(255, 255, 255, 0.92);
    --glass-border: rgba(0, 0, 0, 0.08);
    --glass-hover: rgba(0, 0, 0, 0.12);
}

body[data-theme="light"] .animated-bg,
body[data-theme="light"] .orb,
body[data-theme="light"] .gradient-orb {
    display: none !important;
}

body[data-theme="light"] h1,
body[data-theme="light"] h2,
body[data-theme="light"] h3,
body[data-theme="light"] h4,
body[data-theme="light"] h5,
body[data-theme="light"] h6 {
    color: #111111;
}

body[data-theme="light"] .subtitle,
body[data-theme="light"] .section-subtitle,
body[data-theme="light"] .section-description,
body[data-theme="light"] p,
body[data-theme="light"] li,
body[data-theme="light"] .timeline-item p {
    color: rgba(0, 0, 0, 0.72);
}

body[data-theme="light"] .hero {
    color: #111111;
}

body[data-theme="light"] .hero .subtitle {
    color: rgba(0, 0, 0, 0.6);
}

body[data-theme="light"] .hero::after {
    content: '';
    position: absolute;
    top: 12%;
    left: -35%;
    width: 60%;
    height: 60%;
    background: linear-gradient(110deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0));
    animation: lightSweep 7s ease-in-out infinite;
    pointer-events: none;
    opacity: 0.4;
}

body[data-theme="light"] .section-title {
    position: relative;
    overflow: visible;
}

body[data-theme="light"] .section-title::after {
    content: '';
    position: absolute;
    bottom: -14px;
    left: 50%;
    width: 120px;
    height: 2px;
    background: rgba(0, 0, 0, 0.65);
    transform: translateX(-50%) scaleX(0);
    transform-origin: center;
    animation: dashPulse 4.5s ease-in-out infinite;
}

body[data-theme="light"] .orb {
    background: radial-gradient(circle, rgba(0, 0, 0, 0.08) 0%, transparent 70%);
}

body[data-theme="light"] .gradient-orb {
    background: radial-gradient(circle, rgba(0, 0, 0, 0.12) 0%, transparent 70%);
    filter: saturate(110%) brightness(0.95);
}

body[data-theme="light"] .btn-outline-glass {
    border-color: rgba(0, 0, 0, 0.25);
    color: #111111;
}

body[data-theme="light"] .btn-outline-glass:hover {
    background: #111111;
    border-color: #111111;
    color: #ffffff;
}

body[data-theme="light"] .btn-glass {
    color: #111111;
}

body[data-theme="light"] .btn-glass::after {
    content: '';
    position: absolute;
    top: 0;
    left: -30%;
    width: 40%;
    height: 100%;
    background: linear-gradient(120deg, rgba(255, 255, 255, 0), rgba(0, 0, 0, 0.12), rgba(255, 255, 255, 0));
    animation: buttonShimmer 2.8s ease-in-out infinite;
    opacity: 0.35;
    pointer-events: none;
}

body[data-theme="light"] .glass,
body[data-theme="light"] .service-card,
body[data-theme="light"] .process-step,
body[data-theme="light"] .process-content,
body[data-theme="light"] .experience-card,
body[data-theme="light"] .education-card,
body[data-theme="light"] .project-card,
body[data-theme="light"] .contact-info-card,
body[data-theme="light"] .contact-form,
body[data-theme="light"] .testimonial-card,
body[data-theme="light"] .blog-card,
body[data-theme="light"] .pricing-card,
body[data-theme="light"] .cta-card,
body[data-theme="light"] .award-card,
body[data-theme="light"] .skill-card {
    background: rgba(255, 255, 255, 0.85);
    border-color: rgba(0, 0, 0, 0.08);
    box-shadow: none;
    color: #111111;
}

body[data-theme="light"] .service-icon,
body[data-theme="light"] .award-title,
body[data-theme="light"] .skill-tags span {
    color: #111111;
}

body[data-theme="light"] .service-icon {
    border-color: rgba(0, 0, 0, 0.1);
    color: #111111;
    background: rgba(0, 0, 0, 0.04);
}

body[data-theme="light"] .service-card:hover .service-icon {
    border-color: rgba(0, 0, 0, 0.25);
}

body[data-theme="light"] .service-card p {
    color: rgba(0, 0, 0, 0.65);
}

body[data-theme="light"] .skill-tags span {
    background: rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.08);
}

body[data-theme="light"] .experience-card:hover {
    border-color: rgba(0, 0, 0, 0.18);
}

body[data-theme="light"] .company {
    color: rgba(0, 0, 0, 0.6);
}

body[data-theme="light"] .period {
    color: rgba(0, 0, 0, 0.65);
    background: rgba(0, 0, 0, 0.08);
    border-color: rgba(0, 0, 0, 0.12);
}

body[data-theme="light"] .experience-card .description,
body[data-theme="light"] .education-card p,
body[data-theme="light"] .award-card p {
    color: rgba(0, 0, 0, 0.65);
}

body[data-theme="light"] .education-icon,
body[data-theme="light"] .award-card {
    border-color: rgba(0, 0, 0, 0.1);
}

body[data-theme="light"] .contact-icon {
    border-color: rgba(0, 0, 0, 0.12);
    color: #111111;
}

body[data-theme="light"] .contact-info-card:hover .contact-icon {
    border-color: #111111;
}

body[data-theme="light"] .process-number {
    color: rgba(0, 0, 0, 0.35);
}

body[data-theme="light"] .process-content:hover {
    border-color: rgba(0, 0, 0, 0.18);
}

body[data-theme="light"] .form-control,
body[data-theme="light"] .form-select {
    background: rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.12);
    color: #111111;
}

body[data-theme="light"] .form-control::placeholder {
    color: rgba(0, 0, 0, 0.45);
}

body[data-theme="light"] .form-control:focus,
body[data-theme="light"] .form-select:focus {
    border-color: rgba(0, 0, 0, 0.24);
    box-shadow: 0 0 0 0.2rem rgba(0, 0, 0, 0.08);
}

body[data-theme="light"] .process-content h4 {
    color: #111111;
}

body[data-theme="light"] .process-content p {
    color: rgba(0, 0, 0, 0.65);
}

body[data-theme="light"] .process-timeline::before {
    background: linear-gradient(to bottom,
        transparent,
        rgba(0, 0, 0, 0.1) 10%,
        rgba(0, 0, 0, 0.1) 90%,
        transparent);
}

body[data-theme="light"] .bg-black {
    background: rgba(255, 255, 255, 0.92) !important;
    color: #111111;
}

body[data-theme="light"] #resume,
body[data-theme="light"] #process {
    background: rgba(255, 255, 255, 0.92) !important;
}

body[data-theme="light"] .footer {
    background: rgba(255, 255, 255, 0.92);
    color: #111111;
    border-top-color: rgba(0, 0, 0, 0.08);
}

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

body[data-theme="light"] .timeline-badge {
    background: rgba(0, 0, 0, 0.08);
    color: #111111;
}

.footer-brand-title {
    font-family: 'Space Grotesk', sans-serif;
    margin-bottom: 0.5rem;
    letter-spacing: 0.05em;
}

.footer-tagline {
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
}

.footer-divider {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
}

.footer-credit {
    color: rgba(255, 255, 255, 0.4);
}

.footer-credit-text {
    margin: 0;
}

body[data-theme="light"] .footer-tagline {
    color: rgba(0, 0, 0, 0.5);
}

body[data-theme="light"] .footer-divider {
    border-top-color: rgba(0, 0, 0, 0.08);
}

body[data-theme="light"] .footer-credit {
    color: rgba(0, 0, 0, 0.45);
}
