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

/* ---------- LUXURY COLOR PALETTE (GOLD ACCENTS) ---------- */
:root {
    --deep-carbon: #0B0C10;
    --rich-charcoal: #13141A;
    --soft-charcoal: #1E1F2A;
    --satin-gold: #C5A267;
    --gold-light: #D9B878;
    --gold-mist: rgba(197, 162, 103, 0.2);
    --text-light: #E8E6E1;
    --text-muted: #9A9B9F;
    --glass-white: rgba(20, 20, 30, 0.55);
    --glass-border: rgba(197, 162, 103, 0.25);
    --shadow-gold: 0 20px 35px -12px rgba(0,0,0,0.4), 0 0 0 1px rgba(197,162,103,0.1);
    --transition-smooth: all 0.4s cubic-bezier(0.2, 0.9, 0.4, 1.1);
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--deep-carbon);
    color: var(--text-light);
    overflow-x: hidden;
    cursor: none;
}

/* Custom Cursor (Gold ring) */
.cursor-dot {
    width: 8px;
    height: 8px;
    background: var(--satin-gold);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.12s ease-out;
    transform: translate(-50%, -50%);
}
.cursor-outline {
    width: 38px;
    height: 38px;
    border: 1.5px solid var(--satin-gold);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9998;
    transition: all 0.2s ease-out;
    transform: translate(-50%, -50%);
    opacity: 0.7;
}

/* Particle Canvas - Golden Nebula */
#particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    pointer-events: none;
    opacity: 0.6;
}

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

/* Typography */
h1, h2, h3, h4, .logo, .section-title {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.section-title {
    font-size: 3.2rem;
    margin-bottom: 3rem;
    text-align: center;
    position: relative;
}
.section-title::after {
    content: '';
    display: block;
    width: 70px;
    height: 2px;
    background: var(--satin-gold);
    margin: 1rem auto 0;
}
.highlight {
    color: var(--satin-gold);
}

/* Glassmorphism */
.glass-card, .glass-nav {
    background: var(--glass-white);
    backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 32px;
    box-shadow: var(--shadow-gold);
    transition: var(--transition-smooth);
}

/* Navigation */
.glass-nav {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1200px;
    z-index: 1000;
    padding: 0.8rem 2rem;
    background: rgba(11, 12, 16, 0.7);
    backdrop-filter: blur(20px);
}
.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo {
    font-size: 1.9rem;
    font-weight: 700;
    text-decoration: none;
    color: var(--text-light);
}
.logo span { color: var(--satin-gold); }
.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}
.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition-smooth);
    position: relative;
}
.nav-links a:hover { color: var(--satin-gold); }
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--satin-gold);
    transition: width 0.3s ease;
}
.nav-links a:hover::after { width: 100%; }
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 1.6rem;
    cursor: pointer;
}

/* Hero */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    padding-top: 80px;
}
.hero-content { max-width: 900px; }
.hero-title {
    font-size: 4.2rem;
    margin-bottom: 1rem;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 0.8s forwards 0.2s;
}
.typed-container {
    font-size: 1.8rem;
    color: var(--text-muted);
    margin-bottom: 1.2rem;
    min-height: 4rem;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 0.8s forwards 0.4s;
}
#typed-text {
    color: var(--satin-gold);
    font-weight: 500;
    border-right: 2px solid var(--satin-gold);
    padding-right: 5px;
    animation: blinkCursor 0.7s step-end infinite;
}
@keyframes blinkCursor {
    from, to { border-color: transparent; }
    50% { border-color: var(--satin-gold); }
}
.hero-desc {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 2.2rem;
    color: var(--text-muted);
    line-height: 1.7;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 0.8s forwards 0.6s;
}
.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 0.8s forwards 0.8s;
}
.btn {
    padding: 0.9rem 2.2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition-smooth);
    display: inline-block;
    border: 1px solid transparent;
    will-change: transform;
}
.btn-primary {
    background: var(--satin-gold);
    color: var(--deep-carbon);
    border-color: var(--satin-gold);
}
.btn-primary:hover {
    background: transparent;
    color: var(--satin-gold);
    box-shadow: 0 10px 20px rgba(197,162,103,0.2);
}
.btn-secondary {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--text-light);
}
.btn-secondary:hover {
    border-color: var(--satin-gold);
    color: var(--satin-gold);
}
.scroll-down {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    color: var(--text-muted);
    font-size: 1.4rem;
    animation: bounce 2s infinite;
}

/* Sections */
.section {
    padding: 6rem 0;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.9s ease, transform 0.9s ease;
}
.section.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* About */
.about-card { padding: 3rem; max-width: 1000px; margin: 0 auto; }
.about-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    color: var(--text-muted);
}
.gold-divider {
    width: 70px;
    height: 2px;
    background: var(--satin-gold);
    margin: 2rem 0 1.5rem;
}
.about-links {
    display: flex;
    gap: 1.2rem;
    flex-wrap: wrap;
}
.social-link {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: var(--gold-mist);
    padding: 0.6rem 1.2rem;
    border-radius: 40px;
    color: var(--satin-gold);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition-smooth);
}
.social-link:hover {
    background: var(--satin-gold);
    color: var(--deep-carbon);
    transform: translateY(-3px);
}

/* Skills Grid with subtle animation */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}
.skill-card {
    padding: 2rem;
    text-align: center;
    transition: var(--transition-smooth);
    border-top: 3px solid transparent;
    animation: floatSoft 4s infinite ease-in-out;
}
.skill-card:nth-child(even) { animation-delay: 0.5s; }
@keyframes floatSoft {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-6px); }
    100% { transform: translateY(0px); }
}
.skill-card:hover {
    transform: translateY(-12px);
    border-top-color: var(--satin-gold);
    box-shadow: 0 25px 40px -12px rgba(0,0,0,0.5);
    animation: none;
}
.skill-icon {
    font-size: 3rem;
    color: var(--satin-gold);
    margin-bottom: 1rem;
}

/* Slider Premium */
.slider-container {
    position: relative;
    max-width: 1100px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 36px;
}
.slider {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.2, 0.9, 0.4, 1.1);
}
.slide {
    min-width: 100%;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
}
.slide-image {
    position: relative;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 10px 25px -5px rgba(0,0,0,0.5);
    cursor: pointer;
}
.slide-image a {
    display: block;
    width: 100%;
    height: 100%;
}
.slide-image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}
/* White background fix for AUTOCAREPLUS logo (first slide) */
.slide:first-child .slide-image img {
    background: white;
    padding: 20px;
    object-fit: contain;
}
.slide:hover .slide-image img {
    transform: scale(1.02);
}
.slide-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.4), transparent);
    opacity: 0;
    transition: opacity 0.4s;
}
.slide:hover .slide-image::after { opacity: 1; }
.slide-content h3 { font-size: 1.8rem; font-weight: 600; }
.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin: 0.6rem 0;
}
.tech-tags span {
    background: var(--gold-mist);
    color: var(--satin-gold);
    padding: 0.3rem 1rem;
    border-radius: 30px;
    font-size: 0.75rem;
    font-weight: 500;
}
.slide-links {
    display: flex;
    gap: 1.2rem;
    margin-top: 0.5rem;
}
.slide-links a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--satin-gold);
    text-decoration: none;
    font-weight: 500;
    padding: 0.4rem 1rem;
    border-radius: 40px;
    background: rgba(197,162,103,0.1);
    transition: 0.2s;
}
.slide-links a:hover {
    gap: 0.8rem;
    background: var(--satin-gold);
    color: var(--deep-carbon);
}
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--glass-white);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.2s;
    color: var(--satin-gold);
}
.slider-btn:hover {
    background: var(--satin-gold);
    color: var(--deep-carbon);
}
.prev-btn { left: 20px; }
.next-btn { right: 20px; }
.slider-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 2rem;
}
.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--text-muted);
    transition: 0.2s;
    cursor: pointer;
}
.dot.active {
    background: var(--satin-gold);
    transform: scale(1.3);
}

/* Contact - overflow fixed */
.contact-wrapper {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}
.contact-form-card, .contact-info {
    padding: 2rem;
    overflow: hidden;
}
.contact-form-card input, .contact-form-card textarea {
    width: 100%;
    padding: 1rem;
    margin-bottom: 1.2rem;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    color: var(--text-light);
    font-family: 'Inter', sans-serif;
    transition: 0.2s;
}
.contact-form-card input:focus, .contact-form-card textarea:focus {
    outline: none;
    border-color: var(--satin-gold);
    box-shadow: 0 0 0 2px rgba(197,162,103,0.2);
}
.contact-info p {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    word-break: break-word;
}
.contact-info i {
    color: var(--satin-gold);
    width: 24px;
}
.social-icons {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}
.social-icons a {
    width: 44px;
    height: 44px;
    background: var(--gold-mist);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--satin-gold);
    font-size: 1.2rem;
    transition: 0.2s;
}
.social-icons a:hover {
    background: var(--satin-gold);
    color: var(--deep-carbon);
    transform: translateY(-4px);
}
.form-status {
    margin-top: 1rem;
    padding: 0.8rem;
    border-radius: 20px;
    text-align: center;
    display: none;
}
.form-status.success {
    display: block;
    background: rgba(197,162,103,0.2);
    color: var(--satin-gold);
}
.form-status.error {
    display: block;
    background: rgba(255,80,80,0.2);
    color: #ff8a8a;
}
footer {
    text-align: center;
    padding: 2rem;
    border-top: 1px solid var(--glass-border);
    margin-top: 2rem;
}
.back-to-top {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--satin-gold);
    text-decoration: none;
    margin-top: 1rem;
    transition: 0.2s;
}
.back-to-top:hover { gap: 0.9rem; }

@keyframes fadeUp {
    to { opacity: 1; transform: translateY(0); }
}
@keyframes bounce {
    0%,100%{ transform: translateX(-50%) translateY(0); }
    50%{ transform: translateX(-50%) translateY(-8px); }
}

@media (max-width: 992px) {
    .hero-title { font-size: 3.2rem; }
    .typed-container { font-size: 1.4rem; }
    .contact-wrapper { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--rich-charcoal);
        backdrop-filter: blur(20px);
        padding: 2rem;
        flex-direction: column;
        text-align: center;
        border-radius: 30px;
    }
    .nav-links.active { display: flex; }
    .menu-toggle { display: block; }
    .hero-buttons { flex-direction: column; align-items: center; }
    .btn { width: 220px; text-align: center; }
    .section-title { font-size: 2.5rem; }
}
@media (max-width: 576px) {
    .hero-title { font-size: 2.4rem; }
    .typed-container { font-size: 1.2rem; min-height: 3.5rem; }
    .slide-image img { height: 220px; }
    .container { padding: 0 1rem; }
    .contact-form-card, .contact-info { padding: 1.5rem; }
}
/* fix for potential overflow on contact inputs */
.contact-form-card input, .contact-form-card textarea {
    max-width: 100%;
    box-sizing: border-box;
}