/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    background: linear-gradient(135deg, #0a192f 0%, #172a45 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="0.5" fill="%23ffffff" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
    pointer-events: none;
}

.hero-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    position: relative;
    z-index: 2;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
    color: #ffffff;
    animation: fadeInUp 1s ease-out;
}

.hero-text {
    flex: 1;
    max-width: 700px;
    width: 700px;
    contain: layout;
}

.hero-socials {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 2px solid #ff6b6b;
    color: #ffffff;
    border-radius: 999px;
    text-decoration: none;
    transition: all 0.2s ease-in-out;
    background: rgba(255, 255, 255, 0.05);
}

.social-icon:hover {
    transform: none;
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

@media (max-width: 768px) {
    .hero-text {
        width: 100%;
        max-width: 100%;
        contain: none;
    }
    .hero-socials {
        justify-content: center;
    }
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.profile-image {
    max-width: 100%;
    height: auto;
    max-height: 700px;
}

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, #ffffff, #cccccc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
    text-align: left;
    white-space: nowrap;
    min-height: 4.4rem;
    display: block;
    width: 100%;
    max-width: 600px;
    position: relative;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 400;
    color: #ff6b6b;
    margin-bottom: 1.5rem;
    opacity: 0.9;
    height: 1.8rem;
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 400px;
    position: relative;
}

.hero-description {
    font-size: 1.2rem;
    font-weight: 300;
    max-width: 600px;
    margin: 0 auto 2.5rem;
    line-height: 1.8;
    opacity: 0.9;
}

.hero-skills {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin: 0.8rem 0 1.2rem 0;
    justify-content: flex-start;
}

.skill-badge {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.skill-badge:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: none;
    box-shadow: none;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: flex-start;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(45deg, #ff6b6b, #ff8e8e);
    color: #ffffff;
    border-color: #ff6b6b;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(255, 107, 107, 0.3);
}

.btn-secondary {
    background: transparent;
    color: #ffffff;
    border-color: #ffffff;
}

.btn-secondary:hover {
    background: #ffffff;
    color: #1a1a1a;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(255, 255, 255, 0.2);
}


/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* About, Skills, Contact and Footer Sections */
.about, .skills, .contact {
    padding: 80px 0;
    background: #ffffff;
}

.skills {
    background: #f8f9fa;
}

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

.skill-category {
    background: #ffffff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.skill-category:hover {
    transform: translateY(-5px);
}

.skill-category h3 {
    color: #0a192f;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.skill-category ul {
    list-style: none;
    padding: 0;
}

.skill-category li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
    color: #666;
}

.skill-category li:last-child {
    border-bottom: none;
}

.contact-info {
    margin-top: 2rem;
}

.contact-info p {
    margin: 1rem 0;
    font-size: 1.1rem;
}

.contact-info a {
    color: #ff6b6b;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-info a:hover {
    color: #ff5252;
    text-decoration: underline;
}

.footer {
    background: #0a192f;
    color: #ffffff;
    padding: 2rem 0;
    text-align: center;
}

.footer p {
    margin: 0;
    opacity: 0.8;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.about h2, .portfolio h2 {
    font-size: 2.5rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 2rem;
    color: #1a1a1a;
}

.about p, .portfolio p {
    font-size: 1.1rem;
    text-align: center;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero {
        padding: 40px 0;
    }
    
    .hero-container {
        padding: 0 20px;
    }
    
    .hero-content {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }

    .hero-text {
        order: 2;
        max-width: 100%;
        width: 100%;
        padding: 0 20px;
        box-sizing: border-box;
    }

    .hero-image {
        order: 1;
        padding-top: 20px;
    }

    .hero-title {
        font-size: 2.5rem;
        text-align: center;
        white-space: normal;
        width: 100%;
        max-width: none;
    }

    .hero-subtitle {
        font-size: 1.2rem;
        text-align: center;
        width: 100%;
        max-width: none;
        justify-content: center;
        display: flex;
    }

    .hero-description {
        font-size: 1rem;
        padding: 0 20px;
        max-width: 100%;
        word-wrap: break-word;
        text-align: center;
        width: 100%;
        box-sizing: border-box;
    }

    .hero-skills {
        justify-content: center;
        margin: 0.5rem 0 1rem 0;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    .btn {
        width: 200px;
        text-align: center;
    }

    .profile-image {
        max-height: 400px;
    }

    .about h2, .portfolio h2 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 30px 0;
    }
    
    .hero-container {
        padding: 0 15px;
    }
    
    .hero-content {
        gap: 1rem;
    }
    
    .hero-text {
        padding: 0 15px;
        width: 100%;
        box-sizing: border-box;
    }
    
    .hero-title {
        font-size: 2rem;
        white-space: normal;
        text-align: center;
        width: 100%;
        max-width: none;
    }

    .hero-subtitle {
        font-size: 1rem;
        text-align: center;
        width: 100%;
        max-width: none;
        justify-content: center;
        display: flex;
    }

    .hero-description {
        font-size: 0.9rem;
        padding: 0 15px;
        max-width: 100%;
        word-wrap: break-word;
        text-align: center;
        width: 100%;
        box-sizing: border-box;
    }

    .btn {
        padding: 10px 25px;
        font-size: 0.9rem;
    }

    .profile-image {
        max-height: 350px;
    }
}

/* Additional decorative elements */
.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 80%, rgba(100, 150, 255, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(100, 150, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
}
