/* ========== Variables ========== */
:root {
    --primary-color: #0f3460;
    --secondary-color: #16213e;
    --accent-color: #00d4ff;
    --accent-hover: #00a8cc;
    --text-primary: #1a1a1a;
    --text-secondary: #555;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --border-color: #e0e0e0;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 8px 16px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 15px 35px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', 'Helvetica Neue', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
}

/* ========== Navigation ========== */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(15, 52, 96, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

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

.nav-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-color);
    letter-spacing: 2px;
}

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

.nav-link {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    position: relative;
    transition: var(--transition);
    font-size: 0.95rem;
}

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

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

/* ========== Hero Section ========== */
.hero {
    margin-top: 70px;
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    padding: 1.5rem;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(0, 212, 255, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(0, 212, 255, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-card {
    background: var(--bg-white);
    padding: 2.5rem 2rem;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    max-width: 450px;
    text-align: center;
    animation: slideUp 0.8s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.profile-photo {
    margin-bottom: 2rem;
}

.profile-photo img {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    border: 4px solid var(--accent-color);
    object-fit: cover;
    box-shadow: 0 8px 20px rgba(0, 212, 255, 0.3);
    display: block;
    margin: 0 auto;
    transition: var(--transition);
}

.profile-photo img:hover {
    transform: scale(1.05);
}

.hero-card h1 {
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 0.4rem;
    font-weight: 700;
}

.hero-card .subtitle {
    font-size: 1.1rem;
    color: var(--accent-color);
    font-weight: 600;
    margin-bottom: 0.2rem;
}

.hero-card .university {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-weight: 400;
}

.hero-divider {
    width: 50px;
    height: 3px;
    background: var(--accent-color);
    margin: 1rem auto;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    font-style: italic;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2rem;
    color: var(--accent-color);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(-10px);
    }
}

/* ========== Container ========== */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ========== Sections ========== */
.section {
    background: var(--bg-white);
    padding: 2.5rem 2rem;
    margin: 1.5rem auto;
    border-radius: 15px;
    box-shadow: var(--shadow-md);
    animation: fadeIn 0.6s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section-header {
    margin-bottom: 2.5rem;
    text-align: left;
}

.section-header h2 {
    font-size: 1.6rem;
    color: var(--primary-color);
    margin-bottom: 0.6rem;
    font-weight: 700;
}

.section-underline {
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-color), transparent);
    border-radius: 2px;
}

.section-content p {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.section-content p:last-child {
    margin-bottom: 0;
}

/* ========== Skills Grid ========== */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.skill-card {
    background: linear-gradient(135deg, var(--bg-light) 0%, var(--bg-white) 100%);
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    border: 2px solid transparent;
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.skill-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.1), transparent);
    transition: left 0.6s ease;
}

.skill-card:hover::before {
    left: 100%;
}

.skill-card:hover {
    border-color: var(--accent-color);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.2);
    transform: translateY(-5px);
}

.skill-icon {
    font-size: 2rem;
    margin-bottom: 0.8rem;
    display: block;
}

.skill-card h3 {
    font-size: 1.1rem;
    color: var(--primary-color);
    margin-bottom: 0.6rem;
    font-weight: 600;
}

.skill-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ========== Interests Grid ========== */
.interests-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.interest-card {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    color: white;
    padding: 1.5rem;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
    cursor: pointer;
}

.interest-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200px;
    height: 200px;
    background: rgba(0, 212, 255, 0.1);
    border-radius: 50%;
    transition: var(--transition);
}

.interest-card:hover::before {
    top: -25%;
    right: -25%;
}

.interest-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 212, 255, 0.3);
}

.interest-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-color);
    position: relative;
    z-index: 1;
    margin-bottom: 1rem;
}

.interest-icon {
    font-size: 2rem;
    margin-bottom: 0.8rem;
    display: block;
    position: relative;
    z-index: 1;
}

.interest-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.6rem;
    font-weight: 600;
    position: relative;
    z-index: 1;
}

.interest-card p {
    font-size: 0.95rem;
    opacity: 0.95;
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

/* ========== Contact Section ========== */
.contact-section {
    text-align: center;
    margin-top: 1.5rem;
}

.contact-intro {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.contact-links {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.9rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    border: 2px solid;
    cursor: pointer;
    font-size: 1rem;
}

.contact-btn.linkedin {
    background: linear-gradient(135deg, #0077b5, #006699);
    color: white;
    border-color: #0077b5;
}

.contact-btn.linkedin:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 119, 181, 0.4);
}

.contact-btn.email {
    background: linear-gradient(135deg, var(--accent-color), var(--accent-hover));
    color: var(--primary-color);
    border-color: var(--accent-color);
    font-weight: 700;
}

.contact-btn.email:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 212, 255, 0.4);
}

.btn-icon {
    font-size: 1.3rem;
}

/* ========== Footer ========== */
.footer {
    background: var(--primary-color);
    color: white;
    text-align: center;
    padding: 1.5rem 2rem;
    margin-top: 2rem;
}

.footer p {
    margin: 0.5rem 0;
    font-size: 0.95rem;
}

.footer-tagline {
    font-size: 0.85rem;
    opacity: 0.8;
    font-style: italic;
}

/* ========== Responsive Design ========== */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        height: auto;
        padding: 0.8rem 1.5rem;
    }

    .nav-menu {
        gap: 0.8rem;
        flex-wrap: wrap;
        justify-content: center;
        margin-top: 0.8rem;
    }

    .hero {
        margin-top: 120px;
        padding: 0.8rem;
        min-height: 75vh;
    }

    .hero-card {
        padding: 1.8rem 1.5rem;
        max-width: 100%;
    }

    .hero-card h1 {
        font-size: 1.8rem;
    }

    .profile-photo img {
        width: 120px;
        height: 120px;
    }

    .section {
        padding: 1.8rem 1.5rem;
        margin: 1.2rem auto;
    }

    .section-header h2 {
        font-size: 1.4rem;
    }

    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .skill-card {
        padding: 1.2rem;
    }

    .interests-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .contact-links {
        gap: 1rem;
        flex-direction: column;
    }

    .contact-btn {
        width: 100%;
        justify-content: center;
        padding: 0.8rem 1.5rem;
    }

    .footer {
        padding: 1.2rem 1.5rem;
        margin-top: 1.5rem;
    }

    .footer p {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    .nav-container {
        padding: 0.6rem 1rem;
        height: 60px;
    }

    .nav-logo {
        font-size: 1.2rem;
    }

    .nav-menu {
        gap: 0.4rem;
        font-size: 0.8rem;
    }

    .nav-link::after {
        display: none;
    }

    .hero {
        margin-top: 100px;
        padding: 0.5rem;
        min-height: 70vh;
    }

    .hero-card {
        padding: 1.5rem 1rem;
    }

    .hero-card h1 {
        font-size: 1.5rem;
        margin-bottom: 0.3rem;
    }

    .hero-card .subtitle {
        font-size: 0.95rem;
    }

    .hero-description {
        font-size: 0.9rem;
    }

    .profile-photo {
        margin-bottom: 1.2rem;
    }

    .profile-photo img {
        width: 110px;
        height: 110px;
        border: 3px solid var(--accent-color);
    }

    .section {
        padding: 1.3rem 1rem;
        margin: 0.8rem auto;
        border-radius: 12px;
    }

    .section-header {
        margin-bottom: 1.5rem;
    }

    .section-header h2 {
        font-size: 1.2rem;
        margin-bottom: 0.5rem;
    }

    .section-content p {
        font-size: 0.95rem;
        line-height: 1.6;
    }

    .skill-card,
    .interest-card {
        padding: 1rem;
    }

    .skill-icon {
        font-size: 1.6rem;
        margin-bottom: 0.6rem;
    }

    .skill-card h3,
    .interest-card h3 {
        font-size: 0.95rem;
        margin-bottom: 0.4rem;
    }

    .skill-card p {
        font-size: 0.85rem;
    }

    .interest-number {
        font-size: 1.8rem;
        margin-bottom: 0.5rem;
    }

    .interest-icon {
        font-size: 1.8rem;
        margin-bottom: 0.5rem;
    }

    .interest-card p {
        font-size: 0.85rem;
    }

    .skills-grid {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }

    .contact-intro {
        font-size: 0.95rem;
        margin-bottom: 1.2rem;
    }

    .contact-btn {
        font-size: 0.85rem;
        padding: 0.6rem 1.2rem;
    }

    .btn-icon {
        font-size: 1.1rem;
    }

    .footer {
        padding: 1rem 1rem;
        margin-top: 1rem;
    }

    .footer p {
        font-size: 0.8rem;
        margin: 0.3rem 0;
    }

    .footer-tagline {
        font-size: 0.7rem;
    }
}
    .contact-btn {
        font-size: 0.9rem;
        padding: 0.7rem 1.5rem;
    }
}
