@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

:root {
    --primary-color: #00f2ea; /* Vibrant Teal */
    --transition-speed: 0.4s;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    transition: background-color var(--transition-speed) ease, color var(--transition-speed) ease;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    cursor: none; /* Hide default cursor */
}

/* --- THEMES --- */
body[data-theme="dark"] {
    --secondary-color: #1a1a1a;
    --bg-color: #121212;
    --card-bg-color: #1e1e1e;
    --text-color: #e0e0e0;
    --text-secondary-color: #a0a0a0;
    --card-border-color: #333;
    --footer-bg-color: #111;
    --hover-glow-color: rgba(0, 242, 234, 0.4);
    --navbar-text-color: #fff;
    --navbar-scrolled-bg: #1a1a1a;
    --about-image-shadow: rgba(0, 0, 0, 0.3);
    --cursor-dot-color: #fff;
    --cursor-ring-color: #fff;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
}

body[data-theme="light"] {
    --secondary-color: #e9ecef;
    --bg-color: #f8f9fa;
    --card-bg-color: #ffffff;
    --text-color: #343a40;
    --text-secondary-color: #6c757d;
    --card-border-color: transparent; /* Remove borders for modern look */
    --footer-bg-color: #ffffff;
    --hover-glow-color: rgba(0, 242, 234, 0.2);
    --navbar-text-color: #fff;
    --navbar-scrolled-bg: rgba(255, 255, 255, 0.85);
    --about-image-shadow: rgba(0, 0, 0, 0.08);
    --cursor-dot-color: #000;
    --cursor-ring-color: #000;
    --glass-bg: rgba(255, 255, 255, 0.4);
    --glass-border: rgba(255, 255, 255, 0.6);
}

/* ... (omitting unchanged styles) ... */
section { padding: 80px 0; }
section#contact { background-color: var(--secondary-color); }
.hero { background: linear-gradient(135deg, var(--primary-color), #04395c); color: #fff; height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.section-title { position: relative; display: inline-block; margin-bottom: 50px; font-weight: 700; font-size: 2.5rem; color: var(--text-color); }
.section-title::after { content: ''; position: absolute; bottom: -15px; left: 50%; transform: translateX(-50%); width: 60px; height: 4px; background-color: var(--primary-color); border-radius: 2px; }

/* NAVBAR */
.navbar { background-color: transparent; transition: background-color var(--transition-speed) ease-in-out, padding 0.3s ease; padding: 1rem 0; }
.navbar.scrolled { background-color: var(--navbar-scrolled-bg); box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); }
body[data-theme="light"] .navbar.scrolled { -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.navbar-brand, .navbar .nav-link { color: var(--navbar-text-color) !important; font-weight: 400; transition: color 0.3s ease; }
.navbar.scrolled .nav-link, .navbar.scrolled .navbar-brand { color: var(--text-color) !important; }
.nav-link:hover { color: var(--primary-color) !important; }

/* SKILLS */
.skill-item { background-color: var(--card-bg-color); border: 1px solid var(--card-border-color); border-radius: 8px; padding: 12px 24px; margin: 8px; display: inline-block; font-weight: 400; transition: all 0.3s ease; }
.skill-item:hover { transform: translateY(-5px); background-color: var(--primary-color); box-shadow: 0 0 15px var(--hover-glow-color); }
body[data-theme="dark"] .skill-item:hover, body[data-theme="light"] .skill-item:hover { color: #000; }
body[data-theme="light"] .skill-item { box-shadow: 0 4px 25px rgba(0, 0, 0, 0.07); }

/* TIMELINE */
.timeline { position: relative; max-width: 1200px; margin: 0 auto; }
.timeline::after { content: ''; position: absolute; width: 6px; background-color: var(--card-border-color); top: 0; bottom: 0; left: 50%; margin-left: -3px; z-index: 1; }
body[data-theme="light"] .timeline::after { background-color: #e9ecef; }
.timeline-item { padding: 10px 40px; position: relative; background-color: inherit; width: 50%; z-index: 2; }
.timeline-item::after { content: ''; position: absolute; width: 25px; height: 25px; right: -17px; background-color: var(--bg-color); border: 4px solid var(--primary-color); top: 15px; border-radius: 50%; z-index: 2; transition: background-color var(--transition-speed) ease; }
.timeline-item:nth-child(odd) { left: 0; }
.timeline-item:nth-child(even) { left: 50%; }
.timeline-item:nth-child(even)::after { left: -16px; }
.timeline-content { padding: 20px 30px; background-color: var(--card-bg-color); border: 1px solid var(--card-border-color); position: relative; border-radius: 6px; transition: background-color var(--transition-speed) ease, border-color var(--transition-speed) ease; }
body[data-theme="light"] .timeline-content { box-shadow: 0 4px 25px rgba(0, 0, 0, 0.07); }
.timeline-item:nth-child(odd) .timeline-content { margin-right: 30px; text-align: right; }
.timeline-item:nth-child(even) .timeline-content { margin-left: 30px; text-align: left; }
.timeline-date { font-size: 0.85rem; font-weight: bold; color: var(--primary-color); display: block; margin-bottom: 10px; }
@media screen and (max-width: 991px) {
    .timeline::after {
        left: 31px;
    }
    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }
    .timeline-item::after {
        left: 15px;
    }
    .timeline-item:nth-child(even) {
        left: 0%;
    }
    .timeline-item:nth-child(odd) .timeline-content,
    .timeline-item:nth-child(even) .timeline-content {
        margin-left: 0;
        margin-right: 0;
        text-align: left;
    }
}

/* CONTACT SECTION (Glassmorphism) */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}
.contact-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    padding: 2rem;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    gap: 1.5rem;
    text-align: left;
    text-decoration: none;
    color: var(--text-color);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, background 0.3s ease, border 0.3s ease;
}
.contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(80% 80% at top left, var(--primary-color), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
}
.contact-card:hover::before {
    opacity: 0.15;
}
.contact-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
}
.contact-card i, .contact-card div {
    position: relative;
    z-index: 1;
}
.contact-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
}
.contact-card-text h6 {
    font-weight: bold;
    margin-bottom: 0.25rem;
    color: var(--text-color);
}
.contact-card-text span {
    font-size: 0.9rem;
    color: var(--text-secondary-color);
    word-break: break-all;
}

/* FOOTER & MISC */
footer { background-color: var(--footer-bg-color); padding: 20px 0; transition: background-color var(--transition-speed) ease; }
#back-to-top { position: fixed; bottom: 25px; right: 25px; width: 50px; height: 50px; background-color: var(--primary-color); color: #000; border: none; z-index: 1000; opacity: 0; visibility: hidden; transform: translateY(20px); transition: opacity 0.4s ease, visibility 0.4s ease, transform 0.4s ease; }
#back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
#back-to-top:hover { background-color: var(--primary-color); filter: brightness(0.9); }
#typing-subtitle::after { content: '_'; font-weight: 300; display: inline-block; animation: blink 0.7s infinite; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }
.custom-cursor { position: fixed; top: 0; left: 0; pointer-events: none; z-index: 9999; }
.cursor-dot { --size: 8px; position: fixed; top: calc(var(--size) / -2); left: calc(var(--size) / -2); width: var(--size); height: var(--size); background-color: var(--cursor-dot-color); border-radius: 50%; transition: background-color var(--transition-speed) ease; }
.cursor-ring { --size: 30px; position: fixed; top: calc(var(--size) / -2); left: calc(var(--size) / -2); width: var(--size); height: var(--size); border: 1px solid var(--cursor-ring-color); border-radius: 50%; transition: border-color var(--transition-speed) ease, transform 0.2s ease-out; }
.cursor-ring.cursor-hover { transform: scale(1.5); }
.cursor-ring.cursor-click { transform: scale(0.8); }
body[data-theme="light"] .custom-cursor { mix-blend-mode: normal; }
body[data-theme="dark"] .custom-cursor { mix-blend-mode: difference; }