/* --- 2. CSS Variables (The "Theme" Control Panel) --- */
        :root {
            --bg-color: #0f172a;       /* Deep slate blue */
            --card-bg: #1e293b;        /* Lighter slate for cards */
            --text-primary: #f8fafc;   /* White text */
            --text-secondary: #94a3b8; /* Muted grey text */
            --accent: #38bdf8;         /* Cyan accent color */
            --accent-glow: rgba(56, 189, 248, 0.3);
            --font-main: 'Outfit', sans-serif;
        }

        /* --- Global Reset & Base Styles --- */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            background-color: var(--bg-color);
            color: var(--text-primary);
            font-family: var(--font-main);
            line-height: 1.6;
            overflow-x: hidden; /* Prevents horizontal scroll */
        }

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

        /* --- Navigation --- */
        nav {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 1.5rem 2rem;
            max-width: 1200px;
            margin: 0 auto;
        }

        .logo {
            font-weight: 700;
            font-size: 1.5rem;
            letter-spacing: -1px;
        }
        .logo span { color: var(--accent); }

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

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

/* --- Hero Section (Modern Split Layout) --- */
        .hero-wrapper {
            /* Ensures the hero background spans full width */
            width: 100%;
            min-height: 85vh; /* Slightly taller */
            display: flex;
            align-items: center; /* Vertically centers the content block */
        }

        .hero-split {
            /* This is the container that constrains width and creates the grid */
            max-width: 1200px;
            margin: 0 auto;
            padding: 2rem;
            display: grid;
            grid-template-columns: 1.2fr 1fr; /* Text gets slightly more space than image */
            gap: 4rem; /* Space between text and image */
            align-items: center; /* Vertically align text with image center */
            animation: fadeIn 1.5s ease-out;
        }

        .hero-text {
            /* Default to left align for split view */
            text-align: left;
        }

        .hero-text h1 {
            font-size: 4rem;
            line-height: 1.1;
            margin-bottom: 1.5rem;
            background: linear-gradient(to right, #fff, #94a3b8);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
        }

        .hero-text p {
            font-size: 1.25rem;
            color: var(--text-secondary);
            margin-bottom: 2.5rem;
            max-width: 550px; /* Ensures lines don't get too long to read */
        }

        .hero-image-container {
            position: relative;
        }

        /* Styling the image itself */
        .hero-img {
            width: 100%;
            height: auto;
            border-radius: 24px; /* Smooth rounded corners */
            /* A subtle cyan glow behind the image to match the theme */
            box-shadow: 0 20px 40px -10px rgba(56, 189, 248, 0.2);
            /* Tilted effect on desktop */
            transform: perspective(1000px) rotateY(-10deg) rotateX(5deg);
            transition: transform 0.5s ease;
        }

        /* Cool hover interaction for the image */
        .hero-image-container:hover .hero-img {
             transform: perspective(1000px) rotateY(0deg) rotateX(0deg) scale(1.02);
        }


        .btn {
            display: inline-block; /* Needed now that parent isn't flex centering */
            padding: 0.8rem 2.5rem;
            background-color: var(--accent);
            color: #0f172a; /* Dark text for contrast */
            font-weight: 700;
            border-radius: 50px;
            box-shadow: 0 0 20px var(--accent-glow);
            transition: all 0.3s ease;
        }
        .btn:hover {
            transform: translateY(-3px);
            box-shadow: 0 0 35px var(--accent-glow);
        }

        /* --- Mobile Adjustments for Split Hero --- */
        @media (max-width: 968px) {
            .hero-split {
                /* Stack them into one column on smaller screens */
                grid-template-columns: 1fr;
                text-align: center; /* Center align text on mobile */
                gap: 3rem;
                padding-top: 4rem;
            }

            /* Change order: put image on top on mobile */
            .hero-image-container {
                order: -1; 
                max-width: 500px; /* Don't let it get huge on tablets */
                margin: 0 auto;
            }
            
            .hero-img {
                /* Remove 3D tilt on mobile, it looks weird on small screens */
                transform: none;
            }
            .hero-image-container:hover .hero-img {
                 transform: scale(1.02);
            }

            .hero-text p {
                margin-left: auto;
                margin-right: auto;
            }
            
            .hero-text h1 { font-size: 3rem; }
        }
        /* --- Projects Grid (The Cards) --- */
        .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 4rem 2rem;
        }

        .section-title {
            font-size: 2rem;
            margin-bottom: 2rem;
            border-left: 5px solid var(--accent);
            padding-left: 1rem;
        }

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

        .card {
            background: var(--card-bg);
            padding: 2rem;
            border-radius: 16px;
            border: 1px solid rgba(255, 255, 255, 0.05);
            transition: transform 0.3s ease, box-shadow 0.3s ease;
            position: relative;
            overflow: hidden;
        }

        /* Glassy hover effect */
        .card:hover {
            transform: translateY(-5px);
            border-color: var(--accent);
            box-shadow: 0 10px 30px rgba(0,0,0,0.3);
        }

        .card h3 { font-size: 1.5rem; margin-bottom: 0.5rem; }
        .card p { color: var(--text-secondary); font-size: 0.95rem; }

        /* --- Footer --- */
        footer {
            text-align: center;
            padding: 3rem;
            border-top: 1px solid rgba(255,255,255,0.1);
            color: var(--text-secondary);
            font-size: 0.9rem;
        }

        /* --- Animations --- */
        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(20px); }
            to { opacity: 1; transform: translateY(0); }
        }
        
        /* Utility for JavaScript Observer */
        .hidden { opacity: 0; transform: translateY(30px); transition: all 1s ease; }
        .show { opacity: 1; transform: translateY(0); }

        /* Mobile Adjustments */
        @media (max-width: 768px) {
            .hero h1 { font-size: 2.5rem; }
            nav { flex-direction: column; gap: 1rem; }
        }
/* --- Contact Section & Business Card --- */
    .contact-section {
        padding: 4rem 2rem;
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;
    }

    .business-card {
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
        border: 1px solid rgba(255, 255, 255, 0.2);
        backdrop-filter: blur(10px); /* The "Frosted" Blur */
        border-radius: 20px;
        padding: 2.5rem;
        max-width: 600px;
        width: 100%;
        display: flex;
        align-items: center;
        gap: 2rem;
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
        transition: transform 0.3s ease;
        position: relative;
        overflow: hidden;
    }

    .business-card:hover {
        transform: translateY(-5px) scale(1.01);
        border-color: var(--accent);
    }

    /* Decorative "Glow" behind the card */
    .business-card::before {
        content: '';
        position: absolute;
        top: -50%;
        left: -50%;
        width: 200%;
        height: 200%;
        background: radial-gradient(circle, var(--accent-glow) 0%, transparent 60%);
        opacity: 0.1;
        pointer-events: none;
        transform: translate(var(--mouse-x, 0), var(--mouse-y, 0)); /* For JS effect later */
    }

    .card-avatar {
        width: 100px;
        height: 100px;
        border-radius: 50%;
        object-fit: cover;
        border: 3px solid var(--accent);
        flex-shrink: 0; /* Prevents squishing on mobile */
    }

    .card-info h2 {
        font-size: 2rem;
        margin-bottom: 0.2rem;
        color: #fff;
    }

    .card-title {
        color: var(--accent);
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 1px;
        font-size: 0.9rem;
        margin-bottom: 1rem;
        display: block;
    }

    .card-details {
        margin-top: 1rem;
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }

    .detail-row {
        display: flex;
        align-items: center;
        gap: 0.8rem;
        color: var(--text-secondary);
        font-size: 0.95rem;
    }

    /* Simple SVG Icon styling */
    .icon {
        width: 20px;
        height: 20px;
        fill: var(--text-secondary);    
}

    .email-btn {
        margin-top: 1.5rem;
        display: inline-block;
        padding: 0.6rem 1.5rem;
        background: rgba(255, 255, 255, 0.1);
        border: 1px solid var(--accent);
        color: var(--accent);
        border-radius: 8px;
        font-size: 0.9rem;
        font-weight: 600;
        cursor: pointer;
    }
    
    .email-btn:hover {
        background: var(--accent);
        color: #000;
    }

    @media (max-width: 600px) {
        .business-card {
            flex-direction: column;
            text-align: center;
            padding: 2rem;
        }
        .card-details { align-items: center; }
    }
