:root {
    --bg-color: #F5F1EC; /* Ivory White */
    --text-color: #1A1A1A;
    --text-dim: #6D6D6D;
    --accent-blue: #6D001A; /* Burgundy */
    --accent-cyan: #B5AC8A; /* Dusty Olive */
    --card-bg: rgba(255, 255, 255, 0.9);
    --accent-dark: #1A1A1A;
    --font-heading: 'Anton', 'Impact', sans-serif;
    --font-body: 'Inter', sans-serif;
    --accent-burgundy: #6D001A;
}

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

body {
    background-color: var(--bg-color);
    background-image: 
        radial-gradient(circle at 10% 10%, rgba(181, 172, 138, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 90% 90%, rgba(109, 0, 26, 0.05) 0%, transparent 40%);
    background-attachment: fixed;
    color: var(--text-color);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    cursor: none;
}

@media (pointer: coarse) {
    body { cursor: auto; }
}

/* Typography & Utilities */
h1, h2, h3, h4, .title-large {
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.name-gradient {
    display: inline-flex;
    white-space: nowrap; /* Ensure name stays on one line */
}

.gradient-text-cream, .gradient-text, .gradient-text-full {
    background: linear-gradient(90deg, #6D001A 0%, #6D001A 70%, #A51B2E 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    filter: none;
    text-shadow: none;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(245, 241, 236, 0.9);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(109, 0, 26, 0.1);
    z-index: 100;
}

.logo {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 400;
}

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

.nav-links a {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-color);
    position: relative;
    padding-bottom: 0.5rem;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-cyan);
    transition: width 0.3s ease;
}

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

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

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 6px;
    z-index: 1000;
}

.menu-toggle .bar {
    width: 30px;
    height: 3px;
    background-color: var(--text-color);
    border-radius: 3px;
    transition: all 0.3s ease-in-out;
}

.menu-toggle.active .bar:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active .bar:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* Buttons */
.btn {
    padding: 1rem 2.2rem;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid rgba(109, 0, 26, 0.1);
    font-family: var(--font-body);
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    transition: background 0.4s, color 0.4s, border-color 0.4s, box-shadow 0.4s;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.5px;
}

.btn-gradient {
    background: linear-gradient(135deg, #6D001A 0%, #A51B2E 100%);
    color: #F5F1EC;
    box-shadow: 0 4px 15px rgba(109, 0, 26, 0.2);
}

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

.btn-gradient:hover {
    box-shadow: 0 12px 25px rgba(109, 0, 26, 0.35);
    border-color: rgba(255, 255, 255, 0.2);
}

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

.btn-full {
    width: 100%;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 0 10%;
    position: relative;
    padding-top: 100px;
}

.hero-content {
    flex: 1;
    z-index: 2;
}

.tag {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    background: rgba(109, 0, 26, 0.05); /* Burgundy tint */
    padding: 0.6rem 1.5rem;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--accent-blue);
    margin-bottom: 2rem;
    border: 1px solid rgba(109, 0, 26, 0.15);
}

.dot {
    width: 8px;
    height: 8px;
    background-color: #8A2BE2;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 10px rgba(109, 0, 26, 0.3);
}

.hero h1 {
    font-size: 2.5rem;
    margin: 0;
    font-family: var(--font-body);
    font-weight: 600;
    color: var(--accent-blue);
}

.hero .title-large {
    font-size: clamp(2rem, 7vw, 6rem);
    font-family: var(--font-heading);
    margin: 0;
    line-height: 1;
    white-space: nowrap;
}

/* Premium Name Animation - Letter by Letter */
.name-gradient {
    display: inline-flex;
    white-space: nowrap; /* Ensure name stays on one line */
}

.letter {
    display: inline-block;
    opacity: 0;
    transform: translateY(30px);
    animation: letter-reveal 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    background: linear-gradient(90deg, #6D001A 0%, #A51B2E 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

@keyframes letter-reveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.letter:hover {
    transform: translateY(-10px) scale(1.1);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 10;
    text-shadow: 0 0 20px rgba(165, 27, 46, 0.4);
}

/* Custom Cursor Styles */
.cursor-dot,
.cursor-outline {
    pointer-events: none;
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 9999;
    transition: width 0.3s, height 0.3s, background-color 0.3s, opacity 0.3s;
}

.cursor-dot {
    width: 8px;
    height: 8px;
    background-color: #6D001A;
}

.cursor-outline {
    width: 40px;
    height: 40px;
    border: 1px solid #6D001A;
}

.cursor-hover {
    width: 80px;
    height: 80px;
    background-color: rgba(109, 0, 26, 0.1);
    border-color: rgba(109, 0, 26, 0.5);
}

.cursor-hover-dot {
    width: 4px;
    height: 4px;
    opacity: 0.5;
}

@media (max-width: 900px) {
    .cursor-dot, .cursor-outline { display: none; }
}

.subtitle-wrap h2 {
    font-size: 3rem;
    color: var(--text-color);
}

.dim-text {
    color: #666;
}

.hero-desc {
    color: var(--text-dim);
    max-width: 600px;
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.hero-divider {
    width: 100%;
    max-width: 600px;
    height: 1px;
    background-color: rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.numbers {
    display: flex;
    gap: 4rem;
}

.num-block {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.numbers .num {
    color: #6D001A;
    font-family: var(--font-heading);
    font-size: 1.5rem;
}

.numbers .num-label {
    font-family: var(--font-heading);
    font-size: 1rem;
    color: var(--text-color);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    position: relative;
    z-index: 2;
    opacity: 0;
    transform: translateX(150px); /* Slightly further back for more impact */
    animation: image-reveal 2.2s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    animation-delay: 1.5s; /* Delay slightly to allow name to start */
}

@keyframes image-reveal {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    mask-image: linear-gradient(to bottom, black 85%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 85%, transparent 100%);
}

/* Custom typography & Animations */
.underlined-text {
    position: relative;
    display: inline-block;
    color: var(--accent-blue);
}


.fade-in-section { opacity: 0; animation: fadeIn 1.2s ease-out forwards; }
.slide-up { opacity: 0; transform: translateY(30px); animation: slideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
.float-anim { animation: float 6s ease-in-out infinite; }

@keyframes fadeIn { to { opacity: 1; } }
@keyframes slideUp { to { opacity: 1; transform: translateY(0); } }
@keyframes float { 
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

/* Sections General */
section {
    padding: 6rem 10%;
}

.section-title {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.section-sub {
    color: var(--text-dim);
    margin-top: -0.5rem;
    margin-bottom: 3rem;
    font-size: 1.2rem;
}

/* About Section */
.about {
    max-width: 900px;
}

.about-content p {
    color: var(--text-dim);
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.tools-section {
    margin-top: 4rem;
}

.tools-section h3 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
}

.tools-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.tool-pill {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(109, 0, 26, 0.1);
    padding: 0.8rem 1.8rem;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-color);
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
}

.tool-pill:hover {
    border-color: #6D001A;
    background: rgba(109, 0, 26, 0.05);
    color: #6D001A;
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(109, 0, 26, 0.1);
}

/* Projects Section */
.tabs {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 4rem;
}

.tab-btn {
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(109, 0, 26, 0.1);
    padding: 0.9rem 2.2rem;
    color: var(--text-dim);
    font-family: var(--font-heading);
    font-size: 1.1rem;
    cursor: pointer;
    border-radius: 12px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    letter-spacing: 1px;
}

.tab-btn:hover {
    color: var(--accent-blue);
    border-color: rgba(109, 0, 26, 0.3);
    box-shadow: 0 8px 20px rgba(109, 0, 26, 0.1);
    background: rgba(255, 255, 255, 0.8);
}

.tab-btn.active {
    background: linear-gradient(135deg, #6D001A, #A51B2E);
    color: #FFFFFF;
    box-shadow: 0 10px 25px rgba(109, 0, 26, 0.3);
    border-color: transparent;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 equal columns filling full width */
    gap: 2rem;
    justify-content: start;
}

.project-card {
    display: none;
    background: #FFFFFF;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.project-card.show {
    display: block;
    opacity: 0; /* JS handles triggering the animation */
}

@keyframes pop-in {
    0% { opacity: 0; transform: translateY(40px) scale(0.85); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

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

@keyframes fade-out-down {
    0% { opacity: 1; transform: translateY(0) scale(1); }
    100% { opacity: 0; transform: translateY(20px) scale(0.95); }
}

.project-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 20px 40px rgba(109, 0, 26, 0.12);
    border-color: rgba(109, 0, 26, 0.2);
}


/* Centered Logo Style (matching Design School UAE AD look) */
.centered-logo {
    width: auto !important;
    height: auto !important;
    max-width: 45% !important; /* Makes the logo smaller in the center */
    max-height: 45% !important;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) !important;
    object-fit: contain !important;
    transition: transform 0.4s ease !important;
}

.project-card:hover .centered-logo {
    transform: translate(-50%, -50%) scale(1.1) !important;
}

/* Compensate for thinner logo weight */
.centered-logo.boost-logo {
    max-width: 55% !important;
    max-height: 55% !important;
}

.card-img {
    height: 220px;
    background: #000;
    overflow: hidden;
    position: relative;
}

.card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

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

#mars-img {
    transform: scale(1.15);
    transform-origin: top center;
    object-position: top center;
}

.project-card:hover #mars-img {
    transform: scale(1.22);
}

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

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

.play-btn {
    width: 60px;
    height: 60px;
    background: var(--accent-cyan);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transform: scale(0.5) translateZ(40px);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

.play-btn::after {
    content: '';
    width: 0;
    height: 0;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-left: 15px solid white;
    margin-left: 5px;
}

.project-card:hover .play-btn {
    transform: scale(1) translateZ(60px);
}

.project-card {
    display: none;
    cursor: pointer;
}

.project-card.show {
    display: block;
    animation: fadeIn 0.5s ease-out;
}

.card-info {
    padding: 2rem;
    transform: translateZ(30px);
}

.card-info .category {
    color: #6D001A;
    font-size: 0.7rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
    display: block;
}

.card-info h4 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    color: #1A1A1A;
}

.card-info p {
    color: #6D6D6D;
    font-size: 1rem;
    font-weight: 400;
}


/* Skills Section */
.skills {
    max-width: 900px;
}

.skills-container {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.skill-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--accent-blue); /* Added Burgundy color for high contrast titles */
}

.skill-name {
    color: var(--text-color);
}

.skill-pct {
    color: var(--text-color);
}

.progress-bar {
    height: 12px;
    background: rgba(0, 0, 0, 0.05); /* Darker track for ivory background */
    border-radius: 6px;
    overflow: hidden;
}

.progress {
    height: 100%;
    background: linear-gradient(90deg, #6D001A, #A51B2E);
    border-radius: 6px;
    transition: width 1s ease-out;
}

/* Contact Section */
.contact-header {
    text-align: center;
    margin-bottom: 5rem;
}

.contact-header p {
    color: var(--text-dim);
    font-size: 1.2rem;
    margin-top: 1rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 6rem;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-info h3 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 4rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: rgba(255, 255, 255, 0.04);
    padding: 1.5rem;
    border-radius: 12px;
    transition: background 0.3s;
    font-size: 1.1rem;
}

.contact-item:hover {
    background: rgba(255, 255, 255, 0.08);
}

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

.availability ul {
    list-style: none;
    color: var(--text-dim);
    font-size: 1.1rem;
}

.availability li {
    margin-bottom: 0.8rem;
    position: relative;
    padding-left: 1.5rem;
}

.availability li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--text-dim);
}

.contact-form-wrapper {
    background: #FFFFFF;
    padding: 3rem;
    border-radius: 16px;
    border: 1px solid rgba(181, 172, 138, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

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

.form-group label {
    display: block;
    margin-bottom: 0.8rem;
    color: var(--text-color);
    font-size: 1rem;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1.2rem;
    background: #FDFDFD;
    border: 1px solid rgba(26, 26, 26, 0.1);
    border-radius: 8px;
    color: var(--text-color);
    font-family: var(--font-body);
    font-size: 1rem;
}

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

.footer-badge {
    text-align: right;
    margin-top: 6rem;
    padding-bottom: 2rem;
}

.footer-badge span {
    background: rgba(181, 172, 138, 0.15); /* Subtle Dusty Olive tint */
    padding: 0.8rem 1.5rem;
    border-radius: 30px;
    font-size: 0.9rem;
    color: var(--text-color);
}

/* Responsive */
@media (max-width: 900px) {
    .menu-toggle {
        display: flex;
    }

    .nav-links {
        display: flex;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 100%;
        left: 0;
        background: rgba(245, 241, 236, 0.98);
        backdrop-filter: blur(15px);
        padding: 3rem 0;
        align-items: center;
        gap: 2.5rem;
        box-shadow: 0 10px 20px rgba(0,0,0,0.5);
        transform: translateY(-150%);
        opacity: 0;
        pointer-events: none;
        transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    }

    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }

    .navbar .btn {
        display: none;
    }
    
    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 120px;
        padding-left: 5%;
        padding-right: 5%;
    }
    
    .hero-image {
        margin-top: 3rem;
        justify-content: center;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3.5rem;
    }
    
    .numbers {
        justify-content: center;
    }
}

@media (max-width: 600px) {
    section {
        padding: 4rem 5%;
    }

    .hero {
        padding-top: 100px;
    }

    .hero .title-large {
        font-size: clamp(1.8rem, 11vw, 3.5rem);
    }

    .subtitle-wrap h2 {
        font-size: 2rem;
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }

    .section-title {
        font-size: 2.8rem;
    }
    
    .contact-header h2.section-title {
        font-size: 2.5rem !important;
    }
    
    .hero-desc {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    .tabs {
        flex-wrap: wrap;
        gap: 0.8rem;
        justify-content: center;
    }
    
    .tab-btn {
        flex: 1 1 auto;
        min-width: 120px;
        padding: 0.8rem 1rem;
        font-size: 0.95rem;
    }
    
    .numbers {
        gap: 1.5rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .skill-info {
        font-size: 1.4rem;
    }
    
    .contact-info h3 {
        font-size: 1.8rem;
    }
    
    .tools-grid {
        gap: 0.8rem;
        justify-content: center;
    }
    
    .tool-pill {
        padding: 0.8rem 1.2rem;
        font-size: 0.9rem;
    }
    
    .project-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }



    
    .card-img {
        height: 210px;
    }
    
    .card-info {
        padding: 1rem;
    }

    .card-info .category {
        font-size: 0.65rem;
        margin-bottom: 0.4rem;
    }
    
    .card-info h4 {
        font-size: 1.1rem;
        margin-bottom: 0.3rem;
    }

    .card-info p {
        font-size: 0.85rem;
        line-height: 1.4;
    }
    
    .contact-form-wrapper {
        padding: 1.5rem;
    }

    .logo {
        font-size: 1.8rem;
    }

    .btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }
}

/* Floating Parallax Icons */
#floating-icons-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.floating-icon {
    position: absolute;
    will-change: transform;
    transition: transform 0.1s linear;
}

