/* Global Vars & Reset */
:root {
    --bg-dark: #0a0a12;
    --bg-darker: #050508;
    --primary: #6C63FF;
    /* Deep Purple */
    --secondary: #2A2A35;
    --accent: #00F4FF;
    /* Cyan */
    --text-main: #FFFFFF;
    --text-muted: #B0B0C0;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --gradient-main: linear-gradient(135deg, #6C63FF 0%, #00F4FF 100%);
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Outfit', sans-serif;
    overflow-x: hidden;
    line-height: 1.7;
    /* Increased for better readability */
    letter-spacing: 0.02em;
    /* Slight tracking for body text */
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-darker);
}

::-webkit-scrollbar-thumb {
    background: rgba(108, 99, 255, 0.4);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(108, 99, 255, 0.8);
}

h1,
h2,
h3,
h4,
h5 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.01em;
    /* Tighter tracking for headings looks premium */
}

a {
    text-decoration: none;
    transition: all 0.3s ease;
}

/* Sections */
.section-dark {
    background-color: var(--bg-dark);
}

.bg-darker {
    background-color: var(--bg-darker);
}

.text-light-muted {
    color: var(--text-muted);
}

.text-accent {
    color: var(--accent);
}

.text-purple {
    color: var(--primary);
}

/* Navbar */
.glass-nav {
    background: rgba(10, 10, 18, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    padding: 15px 0;
    transition: all 0.3s ease;
}

.nav-link {
    color: var(--text-muted) !important;
    font-size: 0.95rem;
    font-weight: 500;
    margin-left: 15px;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-main) !important;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.nav-link.active {
    font-weight: 700;
    /* Make the active link stand out more */
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background: var(--gradient-main);
    transition: width 0.3s;
}

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

/* Hero Section */
.hero-section {
    height: 100vh;
    min-height: 700px;
    background: linear-gradient(to bottom, rgba(13, 13, 15, 0.7) 0%, var(--bg-dark) 100%),
        url('https://images.unsplash.com/photo-1542831371-d531d36971e6?q=80&w=2670&auto=format&fit=crop');
    /* Placeholder tech bg */
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    /* Creates the parallax effect */
    position: relative;
    padding-top: 80px;
}

.profile-img {
    width: 180px;
    height: 180px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid var(--primary);
    box-shadow: 0 0 25px rgba(108, 99, 255, 0.6);
    transition: transform 0.3s ease;
}

.profile-img:hover {
    transform: scale(1.05);
    box-shadow: 0 0 40px rgba(0, 244, 255, 0.8);
}

.gradient-text {
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* Buttons */
.btn-primary {
    background: var(--gradient-main);
    border: none;
    padding: 12px 30px;
    font-weight: 600;
    border-radius: 50px;
    position: relative;
    z-index: 1;
    overflow: hidden;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-size: 0.9rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #00F4FF 0%, #6C63FF 100%);
    z-index: -1;
    transition: opacity 0.3s ease;
    opacity: 0;
}

.btn-primary:hover::before {
    opacity: 1;
}

.btn-outline-light {
    border-radius: 50px;
    padding: 12px 30px;
    font-weight: 600;
    border: 2px solid rgba(255, 255, 255, 0.2);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #fff;
    transform: translateY(-2px);
}

.glow-btn {
    box-shadow: 0 0 20px rgba(108, 99, 255, 0.5);
}

.glow-btn:hover {
    box-shadow: 0 0 30px rgba(0, 244, 255, 0.6);
}

/* Cards & Glassmorphism */
.glass-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    /* Adds a subtle top light-catch */
    border-left: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), border-color 0.4s ease, box-shadow 0.4s ease;
}

.glass-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4), 0 0 20px rgba(108, 99, 255, 0.2);
    /* Soft glow */
}

.icon-box {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
}

/* Timeline */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 2px;
    background: var(--glass-border);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    background-color: inherit;
    width: 50%;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    right: -8px;
    background-color: var(--bg-dark);
    border: 2px solid var(--accent);
    top: 25px;
    border-radius: 50%;
    z-index: 1;
}

.timeline-item:nth-child(even) {
    left: 50%;
}

.timeline-item:nth-child(odd) {
    left: 0;
}

.timeline-item:nth-child(even)::after {
    left: -8px;
}

/* Timeline Responsive */
@media screen and (max-width: 768px) {
    .timeline::after {
        left: 31px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }

    .timeline-item::after {
        left: 23px !important;
    }

    .timeline-item:nth-child(even) {
        left: 0;
    }
}

/* Project Cards */
.project-card {
    overflow: hidden;
    /* Contains the image zoom */
}

.project-card .btn-outline-primary {
    border-color: var(--primary);
    color: var(--primary);
    border-width: 2px;
}

.project-card .btn-outline-primary:hover {
    background: var(--primary);
    color: white;
    box-shadow: 0 0 15px rgba(108, 99, 255, 0.4);
}

/* Contact */
.contact-item i {
    background: linear-gradient(135deg, #6C63FF 0%, #00F4FF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Animations */
@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

.text-typing {
    border-right: 2px solid var(--accent);
    white-space: nowrap;
    overflow: hidden;
    display: inline-block;
    animation: blink-caret 0.75s step-end infinite;
}

@keyframes blink-caret {

    from,
    to {
        border-color: transparent
    }

    50% {
        border-color: var(--accent);
    }
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 3px #999;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    background-color: #128C7E;
    transform: scale(1.1);
    color: #fff;
}

.my-float {
    margin-top: 2px;
}