:root {
    --primary: #00f2ea;
    --secondary: #ff0050;
    --bg-dark: #050505;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --text-main: #ffffff;
    --text-muted: #a0a0a0;
    --font-main: 'Outfit', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-main);
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    overflow-x: hidden;
    line-height: 1.6;
}

/* ===== Particle Background ===== */
#particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: radial-gradient(circle at 50% 50%, #1a1a2e, #000);
}

/* ===== Navbar ===== */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    background: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--glass-border);
}

.navbar h1 {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    display: flex;
    gap: 20px;
    align-items: center;
}

.nav-links a {
    font-size: 0.95rem;
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

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

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    z-index: 200;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 2px;
    background: var(--text-main);
    transition: all 0.3s ease;
}

/* ===== Hero Section ===== */
.hero h1 {
    font-size: 3.5rem;
    line-height: 1.1;
}

.hero {
    min-height: 90vh;
    /* Full viewport height */
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 10%;
    position: relative;
    gap: 40px;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero h2 {
    font-size: 3.5rem;
    line-height: 1.1;
    font-weight: 700;
    margin-bottom: 20px;
}

.highlight {
    color: var(--primary);
    text-shadow: 0 0 20px rgba(0, 242, 234, 0.5);
}

.subtitle {
    font-size: 1.5rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.description {
    font-size: 1.1rem;
    color: #ccc;
    margin-bottom: 30px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

.btn {
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn.primary {
    background: var(--primary);
    color: var(--bg-dark);
    font-weight: 700;
    transition: background 0.3s ease;
}

.btn.primary:hover {
    background: var(--secondary);
    color: var(--bg-dark);
}

.btn.secondary {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    font-weight: 700;
    transition: background 0.3s ease, color 0.3s ease;
}

.btn.secondary:hover {
    background: var(--primary);
    color: var(--bg-dark);
}

.btn.resume-btn {
    background: var(--secondary);
    color: var(--bg-dark);
    font-weight: 700;
}

.hero-image {
    flex: 1;
    max-width: 400px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(0, 242, 234, 0.5);
}

.hero-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* ===== Sections Global ===== */
.row {
    padding: 80px 10%;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 20px;
    text-align: center;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    width: 60px;
    height: 4px;
    background: var(--primary);
    transform: translateX(-50%);
    border-radius: 2px;
}

/* ===== Cards General ===== */
.cards {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 0 15px rgba(0, 242, 234, 0.2);
    flex: 1 1 300px;
    max-width: 350px;
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 0 25px rgba(0, 242, 234, 0.4);
}

.card h4 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: white;
}

.card p {
    color: #ccc;
    font-size: 0.95rem;
}

.card-icon,
.cert-icon,
.contact-icon {
    font-size: 2rem;
    margin-bottom: 15px;
    display: block;
}

.small {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 10px;
}

/* Project Link Cards */
.project-link {
    text-decoration: none;
    color: inherit;
}

.project-link:hover .view-more {
    color: var(--secondary);
}

/* ===== Specific Card Styles ===== */
.skills-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.skill-tag {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 10px 15px;
    border-radius: 20px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 0 10px rgba(0, 242, 234, 0.2);
    transition: background 0.3s ease;
}

.skill-tag i {
    font-size: 1.2rem;
}

.skill-tag:hover {
    background: var(--primary);
    color: black;
    transform: scale(1.1);
}

.project-card {
    cursor: pointer;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.card-image-placeholder {
    font-size: 3rem;
    margin-bottom: 20px;
    background: rgba(255, 255, 255, 0.05);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.view-more {
    margin-top: 15px;
    color: var(--primary);
    font-size: 0.9rem;
    display: block;
}

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

.contact-card a {
    color: var(--primary);
    text-decoration: none;
}

/* ===== Modal ===== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 200;
}

.modal-content {
    background: var(--bg-dark);
    padding: 30px;
    border-radius: 15px;
    max-width: 600px;
    width: 90%;
    color: var(--text-main);
    box-shadow: 0 0 20px var(--primary);
}

.modal-content h2 {
    margin-bottom: 15px;
}

.modal-content p {
    margin-bottom: 10px;
}

.close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 2rem;
    cursor: pointer;
    color: var(--primary);
}

/* ===== NEW FEATURES STYLING ===== */

/* Resume Button */
.btn.resume-btn {
    border: 2px solid var(--text-main);
    color: var(--text-main);
    background: transparent;
}

.btn.resume-btn:hover {
    background: var(--text-main);
    color: black;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.4);
}

/* Timeline */
.timeline {
    border-left: 2px solid var(--primary);
    padding-left: 20px;
    margin-top: 20px;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 2px;
    background: var(--glass-border);
    top: 0;
    bottom: 0;
    left: 20px;
    /* Left aligned for simplicity on responsive */
    margin-left: -1px;
}

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

.timeline-dot {
    position: absolute;
    left: -11px;
    top: 10px;
    width: 20px;
    height: 20px;
    background: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(0, 242, 234, 0.5);
}

.timeline-content {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 15px 20px;
    border-radius: 15px;
    box-shadow: 0 0 15px rgba(0, 242, 234, 0.2);
}

/* DevIcons */
.skill-tag i {
    font-size: 1.2rem;
    margin-right: 8px;
    vertical-align: middle;
}

.skill-tag:hover i {
    color: black;
    /* Contrast on hover */
}

/* Contact Form */
.contact-container {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: center;
    margin-top: 20px;
}

.contact-info {
    flex: 1 1 300px;
    max-width: 350px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 15px 20px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    font-weight: 600;
    box-shadow: 0 0 15px rgba(0, 242, 234, 0.2);
}

.contact-icon {
    font-size: 1.5rem;
    color: var(--primary);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.social-links a {
    color: var(--text-main);
    font-size: 1.8rem;
    transition: color 0.3s ease;
}

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

.contact-form {
    flex: 1 1 400px;
    max-width: 450px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-form .form-group {
    display: flex;
    flex-direction: column;
}

.contact-form input,
.contact-form textarea {
    background: var(--bg-dark);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    padding: 12px 15px;
    color: var(--text-main);
    font-size: 1rem;
    resize: none;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: var(--text-muted);
}

.contact-form button {
    align-self: flex-start;
    padding: 12px 30px;
    border-radius: 30px;
    border: none;
    background: var(--primary);
    color: var(--bg-dark);
    font-weight: 700;
    cursor: pointer;
    transition: background 0.3s ease;
}

.contact-form button:hover {
    background: var(--secondary);
}

footer {
    font-size: 0.9rem;
    background: transparent;
    padding: 20px 0;
    color: var(--text-muted);
}

/* ===== Experience / Internship Section ===== */
.experience-card {
    position: relative;
}

.experience-card h4 {
    color: var(--text-main);
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.experience-card .school {
    color: var(--primary);
    font-weight: 600;
}

.experience-card .year {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.btn.certificate-btn {
    display: inline-block;
    margin-top: 12px;
    padding: 8px 20px;
    font-size: 0.85rem;
    border: 2px solid var(--primary);
    color: var(--primary);
    background: transparent;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn.certificate-btn:hover {
    background: var(--primary);
    color: var(--bg-dark);
    box-shadow: 0 0 15px rgba(0, 242, 234, 0.4);
}

/* Certificate Cards Clickable */
.cert-link {
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.cert-link:hover {
    transform: translateY(-10px);
    box-shadow: 0 0 25px rgba(0, 242, 234, 0.4);
}

.cert-view {
    margin-top: 10px;
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 600;
    transition: color 0.3s ease;
}

.cert-link:hover .cert-view {
    color: var(--secondary);
}

/* Responsive */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(5, 5, 5, 0.95);
        backdrop-filter: blur(10px);
        padding: 20px;
        gap: 15px;
        border-bottom: 1px solid var(--glass-border);
    }

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

    .hero {
        flex-direction: column;
        padding: 20px;
        text-align: center;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-image {
        max-width: 250px;
        margin: 20px auto 0;
    }

    .hero-buttons {
        flex-wrap: wrap;
        justify-content: center;
    }

    .cards {
        flex-direction: column;
        align-items: center;
    }

    .contact-container {
        flex-direction: column;
        align-items: center;
    }

    .contact-form {
        max-width: 100%;
    }
}