/* --- CSS Variables & Global Styles --- */
:root {
    --bg-color: #050505;
    --primary-color: #0077FF; /* Electric Blue */
    --text-color: #9ca3af;
    --heading-color: #F9FAFB;
    --glass-bg: rgba(17, 24, 39, 0.5); /* Darker Glass */
    --border-color: rgba(255, 255, 255, 0.08);
    --font-family: 'Inter', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-color);
    color: var(--text-color);
    overflow-x: hidden;
    cursor: none; /* Hide default cursor */
}

/* --- Aurora Background --- */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 30%, rgba(0, 119, 255, 0.15), transparent 40%),
                radial-gradient(circle at 80% 70%, rgba(0, 119, 255, 0.15), transparent 40%);
    z-index: -1;
    animation: aurora 25s infinite linear alternate;
}

@keyframes aurora {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* --- Custom Cursor --- */
.cursor-dot, .cursor-outline {
    pointer-events: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease-in-out, transform 0.2s ease-in-out;
}
.cursor-dot {
    width: 8px;
    height: 8px;
    background-color: var(--primary-color);
}
.cursor-outline {
    width: 40px;
    height: 40px;
    border: 2px solid var(--primary-color);
    transition: width 0.3s ease, height 0.3s ease, border-color 0.3s ease;
}
.cursor-outline.hover {
    width: 60px;
    height: 60px;
    border-color: rgba(0, 119, 255, 0.5);
}

/* --- General --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}
.section-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--heading-color);
    margin-bottom: 2rem;
}
.section-title span { color: var(--primary-color); }

/* --- Header --- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    background: rgba(5, 5, 5, 0.5);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
}
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--heading-color);
    text-decoration: none;
}
.logo span { color: var(--primary-color); }
.nav-menu { display: flex; align-items: center; gap: 2.5rem; }
.nav-link {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}
.nav-link:hover { color: var(--primary-color); }
.nav-link.btn {
    padding: 0.6rem 1.5rem;
    border: 1px solid var(--primary-color);
    border-radius: 50px;
    color: var(--primary-color);
    transition: background-color 0.3s ease, color 0.3s ease;
}
.nav-link.btn:hover {
    background-color: var(--primary-color);
    color: var(--bg-color);
}

/* --- Hero Section --- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    gap: 9rem;
}
.hero-content { max-width: 700px; }
.hero-title {
    font-size: 5.5rem;
    font-weight: 800;
    line-height: 1.1;
    color: var(--heading-color);
    margin-bottom: 1.5rem;
}
.hero-title span { display: block; }
.gradient-text {
    background: -webkit-linear-gradient(45deg, var(--primary-color), #93c5fd);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero-description {
    font-size: 1.1rem;
    max-width: 500px;
    margin-bottom: 2rem;
}
.social-links a {
    color: var(--text-color);
    font-size: 1.5rem;
    margin-right: 1.5rem;
    transition: color 0.3s ease;
}
.social-links a:hover { color: var(--primary-color); }

/* --- About Section --- */
.about {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    align-items: center;
    padding: 6rem 2rem;
}
.hero-image {
    width: 40%;
    height: 400px;
    border-radius: 10px;
    overflow: hidden;
}
.about-image {
    width: 100%;
    height: 400px;
    border-radius: 10px;
    overflow: hidden;
}
.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.about-text p {
    margin-bottom: 2rem;
    font-size: 1.1rem;
    line-height: 1.7;
}
.about-timeline .timeline-item {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 1.5rem;
    border-left: 2px solid var(--border-color);
}
.timeline-item::before {
    content: '';
    position: absolute;
    left: -7px;
    top: 5px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--primary-color);
    box-shadow: 0 0 10px var(--primary-color);
}
.timeline-item h4 {
    color: var(--heading-color);
    font-weight: 600;
    margin-bottom: 0.3rem;
}

/* --- Services (Bento Grid) --- */
.services { padding: 6rem 2rem; }
.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, auto);
    gap: 1.5rem;
}
.bento-item {
    background: var(--glass-bg);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    padding: 2rem;
    backdrop-filter: blur(8px);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.bento-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 40px rgba(0, 119, 255, 0.2);
    border-color: rgba(0, 119, 255, 0.5);
}
.bento-item i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}
.bento-item h3 {
    color: var(--heading-color);
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}
.item-1 { grid-column: 1 / 3; }
.item-4 { grid-column: 2 / 4; }

/* --- Projects Section --- */
.projects { padding: 6rem 2rem; }
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 2rem;
}
.project-card {
    background: var(--glass-bg);
    border-radius: 15px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: transform 0.4s ease, border-color 0.4s ease;
}
.project-card:hover {
    border-color: rgba(0, 119, 255, 0.5);
}
.project-image {
    height: 250px;
    overflow: hidden;
}
.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.project-card:hover .project-image img {
    transform: scale(1.05);
}
.project-info {
    padding: 1.5rem;
}
.project-info h3 {
    color: var(--heading-color);
    font-size: 1.5rem;
}
.project-link {
    display: inline-block;
    margin-top: 1rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}
.project-link i {
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
}
.project-link:hover i {
    transform: translateX(5px);
}

/* --- Contact Section --- */
.contact {
    padding: 8rem 2rem;
    text-align: center;
}
.contact-description {
    max-width: 600px;
    margin: 0 auto 2rem;
    font-size: 1.1rem;
}
.contact-email {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--heading-color);
    text-decoration: none;
    position: relative;
    display: inline-block;
    padding-bottom: 0.5rem;
}
.contact-email::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s ease;
}
.contact-email:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* --- Footer --- */
.footer {
    padding: 2rem 0;
    text-align: center;
    border-top: 1px solid var(--border-color);
}

/* --- Animations --- */
.animate-on-load {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn 0.8s ease-out forwards;
}
.hero-title { animation-delay: 0.2s; }
.hero-description { animation-delay: 0.4s; }
.social-links { animation-delay: 0.6s; }

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Responsive Design --- */
@media (max-width: 992px) {
    .section-title { font-size: 2.8rem; }
    .about { grid-template-columns: 1fr; }
    .about-image { height: 400px; }
    .bento-grid { grid-template-columns: 1fr 1fr; }
    .item-1, .item-4 { grid-column: 1 / 3; }
}

@media (max-width: 768px) {
    body { cursor: auto; }
    .cursor-dot, .cursor-outline { display: none; }
    .nav-menu { display: none; } /* Simplified for demo. Add hamburger menu if needed. */
    .hero-title { font-size: 3.5rem; }
    .contact-email { font-size: 1.8rem; }
    .bento-grid { grid-template-columns: 1fr; }
    .item-1, .item-4 { grid-column: 1 / 2; }
}





