* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background: #f3dfd2;
    color: #333;
    font-size: 16px;
}

nav {
    position: fixed;
    width: 100%;
    padding: 15px 20px;
    background: #b45232;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 999;
}

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

.logo a {
    font-size: 24px;
    text-decoration: none;
    color: #fff;
    font-weight: 600;
}

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

.nav-links li {
    margin-left: 25px;
}

.nav-links a {
    text-decoration: none;
    color: #fff;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #ffeb3b;
}

/* Hamburger Icon */
.hamburger {
    display: none;
    font-size: 24px;
    color: #fff;
    cursor: pointer;
}

/* Sections */
section {
    padding: 100px 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#home {
    background: linear-gradient(135deg, #1a2a6c, #b21f1f, #fdbb2d);
    color: white;
    position: relative;
    text-align: center;
}

.profile-img {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid rgba(255,255,255,0.3);
    box-shadow: 0 0 20px rgba(0,0,0,0.3);
    transition: transform 0.3s;
}

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

h1 {
    font-size: 2.5em;
    margin: 10px 0;
}

h2 {
    font-size: 2em;
    margin: 10px 0;
}

.tagline {
    margin: 15px 0;
    font-size: 1.2em;
    opacity: 0.9;
    text-align: center;
    word-wrap: break-word;
    max-width: 90%;
}

.social-links {
    justify-content: center;
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2em;
    transition: 0.3s;
}

.social-btn:hover {
    background: rgba(255,255,255,0.4);
    transform: translateY(-5px);
}

/* Cards common styling */
.skills-container, .education-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    width: 100%;
    max-width: 1200px;
}

.skill-card, .education-card {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s;
}

.skill-card:hover, .education-card:hover {
    transform: translateY(-8px);
}

.skill-card i, .education-card i {
    font-size: 40px;
    margin-bottom: 15px;
    color: #b21f1f;
}

.skill-card h3, .education-card h3 {
    margin-bottom: 10px;
}

.skill-card ul, .education-card ul {
    list-style: none;
}

.skill-card li, .education-card li {
    margin: 8px 0;
}

.contact-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.contact-btn {
    padding: 10px 25px;
    background: linear-gradient(135deg, #1a2a6c, #b21f1f);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: 0.3s;
}

.contact-btn:hover {
    background: linear-gradient(135deg, #b21f1f, #1a2a6c);
}

footer {
    text-align: center;
    padding: 15px;
    background: #333;
    color: white;
}

/* Typing Animation */
.typing-animation {
    overflow: hidden;
    border-right: 2px solid white;
    white-space: nowrap;
    animation: typing 3s steps(30, end), blink-caret 0.7s step-end infinite;
}

@keyframes typing {
    from { width: 0 }
    to { width: 100% }
}

@keyframes blink-caret {
    from, to { border-color: transparent }
    50% { border-color: white }
}

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

    .nav-links {
        display: none;
        flex-direction: column;
        background: #b45232;
        top: 60px;
        right: 20px;
        width: 150px;
        border-radius: 8px;
        position: absolute;
    }

    .nav-links li {
        margin: 10px 0;
        text-align: center;
    }

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

    .profile-img {
        width: 140px;
        height: 140px;
    }

    h1 {
        font-size: 2em;
    }

    h2 {
        font-size: 1.5em;
    }
}
