:root {
    --bg-color: #0b0f19;
    --text-primary: #e2e8f0;
    --text-secondary: #94a3b8;
    --accent-1: #00f2fe;
    --accent-2: #4facfe;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.05);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    scroll-behavior: smooth;
}

h1, h2, h3, .logo {
    font-family: 'Outfit', sans-serif;
}

/* Background Blobs */
.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    z-index: -1;
    opacity: 0.4;
}
.blob-1 {
    top: 5%;
    left: -5%;
    width: 400px;
    height: 400px;
    background: var(--accent-1);
}
.blob-2 {
    bottom: 20%;
    right: -5%;
    width: 500px;
    height: 500px;
    background: #7b2cbf;
}

/* Glassmorphism Classes */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    box-shadow: var(--glass-shadow);
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    background: rgba(11, 15, 25, 0.8);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 1px;
    background: linear-gradient(90deg, var(--accent-1), var(--accent-2));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

.nav-links a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

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

/* Main Content */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 80px;
    gap: 4rem;
}

.hero-content {
    flex: 1;
}

.hero-content h1 {
    font-size: 4rem;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.gradient-text {
    background: linear-gradient(90deg, #00f2fe, #4facfe, #00f2fe);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientFlow 3s linear infinite;
}

@keyframes gradientFlow {
    to { background-position: 200% center; }
}

.hero-content h2 {
    font-size: 1.8rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    min-height: 2.2rem;
}

.hero-details p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.btn {
    padding: 0.8rem 1.8rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background: linear-gradient(90deg, var(--accent-1), var(--accent-2));
    color: #fff;
    box-shadow: 0 4px 15px rgba(0, 242, 254, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 242, 254, 0.5);
}

.btn-secondary {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.1);
}

.hero-image {
    flex: 1;
    position: relative;
    padding: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 400px;
}

.hero-image img {
    width: 100%;
    border-radius: 12px;
    display: block;
    aspect-ratio: 1;
    object-fit: cover;
}

.badge {
    position: absolute;
    bottom: -15px;
    right: -15px;
    background: rgba(11, 15, 25, 0.95);
    border: 1px solid var(--accent-1);
    padding: 0.8rem 1.2rem;
    border-radius: 20px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--accent-1);
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
}

/* Sections */
section {
    padding: 6rem 0;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-align: center;
    color: #fff;
    font-weight: 600;
}

.about-container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
}

.about-card {
    padding: 2.5rem;
    text-align: left;
    font-size: 1.1rem;
    line-height: 1.8;
    transition: transform 0.3s ease, border-color 0.3s, box-shadow 0.3s;
}

.about-card:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 242, 254, 0.4);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.about-card h3 {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.about-card h3 svg.title-icon {
    stroke: var(--accent-1);
}

.tldr-list {
    list-style: none;
}

.tldr-list li {
    margin-bottom: 1.2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-primary);
    font-weight: 500;
    font-size: 1.05rem;
}

.tldr-list li span.tldr-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-1);
    background: rgba(255, 255, 255, 0.03);
    padding: 8px;
    border-radius: 8px;
    border: 1px solid var(--glass-border);
}

.tldr-list li span.tldr-icon svg {
    width: 20px;
    height: 20px;
}

.main-about-card p {
    color: var(--text-secondary);
    font-size: 1.15rem;
    line-height: 1.9;
    text-align: justify;
}

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

.skill-card {
    padding: 2.5rem 2rem;
    transition: transform 0.3s ease, border-color 0.3s;
}

.skill-card:hover {
    transform: translateY(-8px);
    border-color: rgba(0, 242, 254, 0.4);
}

.skill-icon {
    margin-bottom: 1.5rem;
    display: inline-flex;
    padding: 12px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    border: 1px solid var(--glass-border);
}

.skill-icon svg {
    width: 32px;
    height: 32px;
    stroke: var(--accent-1);
}

.skill-card h3 {
    font-size: 1.6rem;
    margin-bottom: 0.5rem;
    color: #fff;
}

.proficiency {
    font-weight: 600;
    color: var(--accent-1);
    margin-bottom: 1rem;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.skill-card p {
    color: var(--text-secondary);
    font-size: 1rem;
}

/* Certificates */
.cert-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

.cert-card {
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    transition: transform 0.3s ease, border-color 0.3s, box-shadow 0.3s;
    position: relative;
    overflow: hidden;
}

.cert-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 4px;
    background: linear-gradient(90deg, var(--accent-1), var(--accent-2));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.cert-card:hover {
    transform: translateY(-8px);
    border-color: rgba(0, 242, 254, 0.4);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.cert-card:hover::before {
    transform: scaleX(1);
}

.cert-image-container {
    width: 100%;
    margin-bottom: 1.5rem;
    overflow: hidden;
    border-radius: 8px;
    border: 1px solid var(--glass-border);
}

.cert-image {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.cert-card:hover .cert-image {
    transform: scale(1.05);
}

.cert-body h3 {
    font-size: 1.4rem;
    color: #fff;
    margin-bottom: 1rem;
}

.cert-body p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 2rem;
    flex-grow: 1;
}

.cert-btn {
    width: 100%;
    text-align: center;
    padding: 0.8rem 0;
    font-size: 0.95rem;
    margin-top: auto;
}

/* Contact Section */
.contact-container {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
    padding: 3rem;
    justify-content: space-between;
}

.contact-info {
    flex: 1;
    min-width: 300px;
}

.contact-info h3 {
    font-size: 1.8rem;
    color: #fff;
    margin-bottom: 1rem;
}

.contact-info p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.contact-links {
    list-style: none;
}

.contact-links li {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.1rem;
}

.contact-links a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s;
}

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

.contact-form {
    flex: 1;
    min-width: 300px;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent-1);
    box-shadow: 0 0 10px rgba(0, 242, 254, 0.2);
}

.contact-form button {
    margin-top: 1rem;
    padding: 1rem;
    cursor: pointer;
    font-size: 1.1rem;
}

/* Footer */
footer {
    text-align: center;
    padding: 2.5rem;
    border-top: 1px solid var(--glass-border);
    margin-top: 4rem;
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(25px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.flex-delay-1 { transition-delay: 0.1s; }
.flex-delay-2 { transition-delay: 0.2s; }
.flex-delay-3 { transition-delay: 0.3s; }
.flex-delay-4 { transition-delay: 0.4s; }

/* Responsive Media Queries */
@media (max-width: 768px) {
    .about-container {
        grid-template-columns: 1fr;
    }

    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 120px;
    }
    
    .hero-content h1 {
        font-size: 3rem;
    }
    
    .hero-buttons {
        justify-content: center;
        flex-direction: column;
    }
    
    .badge {
        bottom: -15px;
        right: 50%;
        transform: translateX(50%);
        width: max-content;
    }
    
    .nav-links {
        display: none;
    }
}

/* Print Styles optimized for PDF export */
@media print {
    body {
        background: #ffffff !important;
        color: #1a1a1a !important;
    }
    
    nav, .hero-buttons, .blob, footer, .note {
        display: none !important;
    }
    
    .glass {
        background: none;
        box-shadow: none;
        border: 1px solid #e2e8f0;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }
    
    .gradient-text {
        background: none;
        -webkit-text-fill-color: #000;
        color: #000;
    }
    
    .hero-content h2 {
        color: #475569;
    }
    .hero-details p, .skill-card p {
        color: #334155;
    }
    
    .hero {
        min-height: auto;
        padding-top: 0;
        gap: 2rem;
    }
    
    section {
        padding: 2rem 0;
        page-break-inside: avoid;
    }
    
    .section-title {
        color: #000;
        margin-bottom: 2rem;
    }
    
    .cert-card {
        border: 1px solid #e2e8f0;
        box-shadow: none;
        page-break-inside: avoid;
    }
    
    .cert-card::before {
        display: none;
    }
    
    .cert-icon {
        filter: none;
    }
    
    .cert-btn {
        display: none !important;
    }
    
    .proficiency {
        color: #2563eb;
    }
}
