:root {
    --bg-color: #0b0f17;
    --card-bg: rgba(18, 26, 38, 0.85);
    --primary-color: #00f2fe;
    --secondary-color: #4facfe;
    --accent-glow: rgba(0, 242, 254, 0.2);
    --text-color: #c5d1e0;
    --heading-color: #ffffff;
    --border-color: rgba(0, 242, 254, 0.18);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
    font-family: 'Poppins', sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    overflow-x: hidden;
    position: relative;
}

/* Background Cyber Grid & Glow */
.bg-glow {
    position: fixed;
    width: 450px;
    height: 450px;
    background: radial-gradient(circle, var(--accent-glow) 0%, rgba(0,0,0,0) 70%);
    top: -100px;
    left: -100px;
    pointer-events: none;
    z-index: -1;
}

.cyber-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(rgba(0, 242, 254, 0.03) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(0, 242, 254, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
    z-index: -1;
}

/* Header & Nav */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 8%;
    background: rgba(11, 15, 23, 0.92);
    backdrop-filter: blur(12px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
}

.logo {
    font-family: 'Fira Code', monospace;
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--heading-color);
}

.logo span {
    color: var(--primary-color);
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    margin-left: 20px;
    font-size: 0.85rem;
    transition: 0.3s color;
}

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

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    color: var(--heading-color);
    cursor: pointer;
}

/* General Section Layout */
section {
    padding: 110px 8% 50px;
}

.section-title {
    font-family: 'Fira Code', monospace;
    font-size: 2.2rem;
    color: var(--heading-color);
    margin-bottom: 8px;
    text-align: center;
}

.section-title span {
    color: var(--primary-color);
}

.section-subtitle {
    text-align: center;
    font-size: 0.9rem;
    color: #8899ac;
    margin-bottom: 45px;
}

/* Photo Glow Effect */
.image-border-glow {
    position: relative;
    padding: 5px;
    background: linear-gradient(45deg, var(--primary-color), transparent, var(--secondary-color));
    border-radius: 16px;
    box-shadow: 0 0 25px var(--accent-glow);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    width: 100%;
}

.hero-content {
    flex: 1;
}

.badge {
    display: inline-block;
    padding: 6px 18px;
    background: rgba(0, 242, 254, 0.08);
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: 20px;
    font-size: 0.85rem;
    margin-bottom: 25px;
}

.hero h1 {
    font-size: 3.2rem;
    color: var(--heading-color);
    margin-bottom: 12px;
}

.highlight {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero h2 {
    font-size: 1.35rem;
    color: var(--text-color);
    margin-bottom: 22px;
    font-weight: 400;
}

.typing-text {
    color: var(--primary-color);
    font-family: 'Fira Code', monospace;
    font-weight: 600;
}

.hero p {
    max-width: 600px;
    line-height: 1.7;
    font-size: 0.95rem;
    margin-bottom: 30px;
}

.hero-btns {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.btn {
    padding: 12px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s transform, 0.3s box-shadow;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.primary-btn {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: #0b0f17;
}

.secondary-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--heading-color);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px var(--accent-glow);
}

.social-links a {
    color: var(--text-color);
    font-size: 1.4rem;
    margin-right: 20px;
    transition: 0.3s color;
}

.social-links a:hover {
    color: var(--primary-color);
}

.hero-image-wrapper {
    width: 320px;
    flex-shrink: 0;
}

.hero-img {
    width: 100%;
    height: 380px;
    object-fit: cover;
    border-radius: 12px;
    display: block;
}

/* About Section */
.about-container {
    display: flex;
    align-items: center;
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.about-image-wrapper {
    width: 300px;
    flex-shrink: 0;
}

.about-img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    border-radius: 12px;
    display: block;
}

.about-text-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 35px;
    border-radius: 14px;
    line-height: 1.8;
}

.about-text-card h3 {
    color: var(--heading-color);
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.about-text-card p {
    font-size: 0.9rem;
    margin-bottom: 15px;
}

/* Primary Skills Grid */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 25px;
}

.skill-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 30px 20px;
    border-radius: 12px;
    transition: 0.3s;
}

.cyber-card {
    border-color: var(--primary-color);
    box-shadow: 0 0 15px var(--accent-glow);
}

.skill-card:hover {
    transform: translateY(-6px);
    border-color: var(--primary-color);
}

.skill-icon {
    font-size: 2.3rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.skill-card h3 {
    color: var(--heading-color);
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.skill-card p {
    font-size: 0.83rem;
    line-height: 1.6;
}

/* Networking Section Grid */
.net-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 25px;
}

.net-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 30px 20px;
    border-radius: 12px;
    transition: 0.3s;
}

.net-card:hover {
    transform: translateY(-6px);
    border-color: var(--secondary-color);
    box-shadow: 0 8px 20px rgba(79, 172, 254, 0.2);
}

.net-icon {
    font-size: 2.3rem;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.net-card h3 {
    color: var(--heading-color);
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.net-card p {
    font-size: 0.83rem;
    line-height: 1.6;
}

/* Projects Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.project-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 28px;
    border-radius: 12px;
    position: relative;
    transition: 0.3s;
}

.project-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-6px);
}

.project-tag {
    position: absolute;
    top: 18px;
    right: 18px;
    font-size: 0.7rem;
    background: rgba(0, 242, 254, 0.1);
    color: var(--primary-color);
    padding: 4px 10px;
    border-radius: 10px;
    font-family: 'Fira Code', monospace;
}

.project-card h3 {
    color: var(--heading-color);
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.project-card p {
    font-size: 0.85rem;
    margin-bottom: 18px;
    line-height: 1.6;
}

.project-tech span {
    font-size: 0.72rem;
    font-family: 'Fira Code', monospace;
    background: rgba(255,255,255,0.06);
    padding: 4px 8px;
    border-radius: 4px;
    margin-right: 6px;
}

/* Secondary Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 25px;
}

.service-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 28px 20px;
    border-radius: 12px;
    transition: 0.3s;
}

.service-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
}

.service-icon {
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.service-card h3 {
    color: var(--heading-color);
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.service-card p {
    font-size: 0.83rem;
    line-height: 1.6;
}

/* Timeline */
.timeline {
    max-width: 750px;
    margin: 0 auto;
    border-left: 2px solid var(--primary-color);
    padding-left: 25px;
}

.timeline-item {
    position: relative;
    margin-bottom: 35px;
}

.timeline-dot {
    position: absolute;
    width: 12px;
    height: 12px;
    background: var(--primary-color);
    border-radius: 50%;
    left: -32px;
    top: 5px;
    box-shadow: 0 0 12px var(--primary-color);
}

.timeline-content {
    background: var(--card-bg);
    padding: 22px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
}

.timeline-date {
    font-size: 0.8rem;
    color: var(--primary-color);
    font-family: 'Fira Code', monospace;
}

.timeline-content h3 {
    color: var(--heading-color);
    font-size: 1.15rem;
    margin: 5px 0 10px;
}

.timeline-content p {
    font-size: 0.85rem;
    line-height: 1.6;
}

/* Contact Container */
.contact-container {
    display: flex;
    flex-direction: column;
    gap: 40px;
    max-width: 900px;
    margin: 0 auto;
}

.contact-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.contact-box {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 25px 20px;
    border-radius: 12px;
    text-decoration: none;
    color: var(--text-color);
    transition: 0.3s transform, 0.3s border-color;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.contact-box:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

.whatsapp-box .contact-icon { color: #25D366; }
.insta-box .contact-icon { color: #E1306C; }
.email-box .contact-icon { color: var(--primary-color); }

.contact-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.contact-box h3 {
    color: var(--heading-color);
    font-size: 1.15rem;
    margin-bottom: 8px;
}

.contact-box p {
    font-size: 0.8rem;
    margin-bottom: 15px;
    line-height: 1.5;
}

.chat-btn {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary-color);
}

/* Contact Form Styling */
.contact-form-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 35px 25px;
    border-radius: 14px;
}

.contact-form-card h3 {
    color: var(--heading-color);
    margin-bottom: 25px;
    font-size: 1.3rem;
    text-align: center;
}

.form-row {
    display: flex;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 18px;
    width: 100%;
}

.form-group label {
    font-size: 0.85rem;
    color: var(--heading-color);
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    background: rgba(11, 15, 23, 0.8);
    border: 1px solid var(--border-color);
    padding: 12px 15px;
    border-radius: 8px;
    color: #fff;
    font-size: 0.9rem;
    outline: none;
    transition: 0.3s border-color;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
}

.submit-btn {
    width: 100%;
    justify-content: center;
    cursor: pointer;
    border: none;
}

/* Footer */
footer {
    text-align: center;
    padding: 25px;
    border-top: 1px solid var(--border-color);
    font-size: 0.82rem;
    color: #7a8b9e;
}

/* Mobile Responsive */
@media (max-width: 850px) {
    .hero-container,
    .about-container {
        flex-direction: column;
        text-align: center;
    }

    .hero-btns {
        justify-content: center;
    }

    .hero-image-wrapper,
    .about-image-wrapper {
        width: 100%;
        max-width: 280px;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 65px;
        right: 8%;
        background: var(--card-bg);
        border: 1px solid var(--border-color);
        padding: 20px;
        border-radius: 10px;
        width: 220px;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        margin: 10px 0;
    }

    .menu-toggle {
        display: block;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }
}
