/* General Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --primary-color: #007bff;
    --secondary-color: #ff7b00;
    --dark-bg: #121212;
    --medium-bg: #1f1f1f;
    --light-bg: #2a2a2a;
    --card-bg: #333;
    --text-color: #f4f4f4;
    --text-muted: #ccc;
    --transition: all 0.3s ease;
}

body {
    font-family: 'Poppins', 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    background: var(--dark-bg);
    color: var(--text-color);
    scroll-behavior: smooth;
    overflow-x: hidden;
    transition: var(--transition);
}

section {
    padding: 5rem 2rem;
    position: relative;
}

h1, h2, h3, h4, h5, h6 {
    margin-bottom: 1.5rem;
    font-weight: 700;
    line-height: 1.2;
}

h2 {
    font-size: 2.5rem;
    color: var(--secondary-color);
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 2px;
}

p {
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
}

/* Header */
header {
    background: rgba(18, 18, 18, 0.95);
    padding: 1.2rem;
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

/* Navigation */
nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 0;
    flex-wrap: wrap;
}

nav ul li {
    margin: 0.5rem 1rem;
}

nav ul li a {
    color: var(--text-color);
    text-decoration: none;
    transition: var(--transition);
    padding: 0.5rem;
    display: block;
    font-weight: 500;
    position: relative;
    font-size: 1.1rem;
}

nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    bottom: 0;
    left: 0;
    background-color: var(--primary-color);
    transition: var(--transition);
    border-radius: 2px;
}

nav ul li a:hover::after, 
nav ul li a:focus::after {
    width: 100%;
}

nav ul li a:hover, 
nav ul li a:focus {
    color: var(--primary-color);
}

/* Mobile Navigation Toggle */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: #f4f4f4;
    font-size: 1.5rem;
    cursor: pointer;
    position: absolute;
    right: 1rem;
    top: 1rem;
    z-index: 1001;
}

.hamburger {
    font-size: 1.8rem;
}

/* Hero Section */
#home {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    background: linear-gradient(135deg, var(--primary-color) 0%, #6610f2 100%);
    position: relative;
    left: 0;
    right: 0;
    overflow: hidden;
    padding: 0;
}

#home::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><polygon fill="rgba(0,0,0,0.05)" points="0,100 100,0 100,100"/></svg>');
    background-size: cover;
}

.hero-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    padding: 0 2rem;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    color: var(--text-color);
    position: relative;
    z-index: 2;
}

.hero-container h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    text-align: center;
    animation: fadeInDown 1s ease-out;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-container h1 .highlight {
    color: var(--secondary-color);
    font-size: 4.2rem;
    position: relative;
    display: inline-block;
}

.hero-container h1 .highlight::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 6px;
    background-color: var(--secondary-color);
    bottom: 0;
    left: 0;
    border-radius: 3px;
    transform: scaleX(0);
    transform-origin: bottom right;
    animation: underlineExpand 1.5s 0.5s forwards;
}

#typewriter {
    font-size: 2rem;
    text-align: center;
    min-height: 3rem;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
    animation: fadeIn 2s ease-out;
}


.profile-image {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    border: 4px solid var(--text-color);
    object-fit: cover;
    margin-bottom: 2rem;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    animation: fadeInUp 1s ease-out, pulse 6s infinite ease-in-out;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.profile-image:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.btn {
    background: var(--primary-color);
    color: white;
    padding: 0.8rem 1.5rem;
    margin: 0.8rem;
    text-decoration: none;
    border-radius: 30px;
    transition: all 0.3s ease-in-out;
    display: inline-block;
    text-align: center;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-size: 0.9rem;
    box-shadow: 0 4px 10px rgba(0, 123, 255, 0.3);
    position: relative;
    overflow: hidden;
    z-index: 1;
    animation: fadeInUp 1s ease-out;
    animation-delay: 0.5s;
    animation-fill-mode: both;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background-color: var(--secondary-color);
    transition: all 0.4s cubic-bezier(0.42, 0, 0.58, 1);
    z-index: -1;
}

.btn:hover {
    box-shadow: 0 6px 15px rgba(255, 123, 0, 0.4);
    transform: translateY(-3px);
    color: white;
}

.btn:hover::before {
    width: 100%;
}

.btn.secondary {
    background: transparent;
    color: white;
    border: 2px solid var(--text-color);
    box-shadow: none;
}

.btn.secondary:hover {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
    color: white;
    box-shadow: 0 6px 15px rgba(255, 123, 0, 0.4);
}






/* About Section */
#about {
    padding: 5rem 3rem;
    background: var(--medium-bg);
    position: relative;
    overflow: hidden;
}

#about::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: rgba(0, 123, 255, 0.05);
    z-index: 0;
}

#about::after {
    content: '';
    position: absolute;
    bottom: -80px;
    left: -80px;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgba(255, 123, 0, 0.03);
    z-index: 0;
}

.about-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.about-left, .about-right {
    flex: 1 1 100%; /* Full width on mobile, will be adjusted in media queries */
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    color: var(--text-color);
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.about-left:hover, .about-right:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.about-left h2, .about-right h2 {
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    text-align: center;
    font-size: 2rem;
    position: relative;
    display: inline-block;
    padding-bottom: 0.5rem;
    width: 100%;
}

.about-left h2::after, .about-right h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
}

.about-right p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.education-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.education-list li {
    margin-bottom: 2rem;
    background: var(--light-bg);
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    border-left: 4px solid var(--primary-color);
}

.education-list li:hover {
    transform: translateX(5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.education-list h3 {
    color: var(--secondary-color);
    margin-bottom: 0.8rem;
    font-size: 1.3rem;
}

.education-list p {
    margin: 0.5rem 0;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
}


/* Skills Section */
#skills {
    padding: 5rem 2rem;
    background: var(--dark-bg);
    text-align: center;
    position: relative;
    overflow: hidden;
}

#skills::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(0, 123, 255, 0.05) 0%, rgba(0, 123, 255, 0) 70%);
    top: -100px;
    right: -100px;
    border-radius: 50%;
}

#skills h2 {
    color: var(--secondary-color);
    font-size: 2.5rem;
    margin-bottom: 3rem;
    position: relative;
    display: inline-block;
}

/* Grid layout for skill cards */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
    width: 100%;
}

/* Skill card styles */
.skill-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
    border-bottom: 4px solid var(--primary-color);
}

.skill-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

/* Heading for each skill category */
.skill-card h3 {
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    position: relative;
    display: inline-block;
    padding-bottom: 0.5rem;
}

.skill-card h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
}

/* List of skills */
.skill-card ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.skill-card ul li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 0.5rem;
    font-size: 1rem;
    color: #f4f4f4;
}

/* SVG Icons */
.skill-card ul li img {
    width: 30px; /* Adjust size as needed */
    height: 30px;
    object-fit: contain;
}


/* Experience Section */
#experience {
    padding: 2rem 2rem;
    background: #1f1f1f;
    text-align: center;
}

.experience-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 2rem;
}

.experience-item {
    background: #333;
    padding: 1rem;
    margin-bottom: 2rem;
    width: 100%;
    max-width: 800px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.experience-item h3 {
    color: #ff7b00;
}

.experience-duration {
    font-style: italic;
    color: #ccc;
}

.experience-item ul {
    text-align: left;
    list-style: inside square;
}

.experience-item li {
    margin: 0.5rem 0;
    color: #f4f4f4;
}

/* Projects Section */
#projects {
    padding: 5rem 2rem;
    background: var(--medium-bg);
    text-align: center;
    position: relative;
    overflow: hidden;
}

#projects::before {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 123, 0, 0.05) 0%, rgba(255, 123, 0, 0) 70%);
    bottom: -150px;
    left: -150px;
    border-radius: 50%;
    z-index: 0;
}

.project-card {
    background: var(--card-bg);
    padding: 2.5rem;
    margin-bottom: 3rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    z-index: 1;
    overflow: hidden;
    border-top: 4px solid var(--primary-color);
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.project-card h3 {
    margin: 0 0 1.5rem 0;
    color: var(--secondary-color);
    font-size: 1.8rem;
}

.project-card a {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: bold;
    display: inline-block;
    margin: 0.5rem 1rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    transition: all 0.3s ease;
    border: 1px solid var(--primary-color);
}

.project-card a:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 123, 255, 0.3);
}

/* Contact Section */
#contact {
    padding: 5rem 2rem;
    background: var(--dark-bg);
    text-align: center;
    position: relative;
    overflow: hidden;
}

#contact::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(0, 123, 255, 0.05) 0%, rgba(0, 123, 255, 0) 70%);
    top: -100px;
    right: -100px;
    border-radius: 50%;
    z-index: 0;
}

#contact h2 {
    position: relative;
    z-index: 1;
}

#contact form {
    max-width: 600px;
    width: 90%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
}

#contact form input, #contact form textarea {
    padding: 1rem;
    margin: 1rem 0;
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 8px;
    width: 100%;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

#contact form input:focus, #contact form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.2);
}

#contact form button {
    background: var(--primary-color);
    color: white;
    padding: 0.8rem 2.5rem;
    border-radius: 30px;
    font-weight: bold;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 1rem;
    box-shadow: 0 4px 10px rgba(0, 123, 255, 0.3);
}

#contact form button:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(255, 123, 0, 0.4);
}

/* Footer */
footer {
    background: var(--light-bg);
    padding: 3rem 0;
    text-align: center;
    position: relative;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.1);
}

.social-links {
    margin-top: 1.5rem;
    animation: fadeIn 1s ease-out;
}

.social-links a {
    color: var(--secondary-color);
    margin: 0 1rem;
    font-weight: bold;
    display: inline-block;
    padding: 0.8rem;
    transition: all 0.3s ease;
    position: relative;
    font-size: 1.1rem;
}

.social-links a:hover {
    color: var(--primary-color);
    transform: translateY(-3px);
}

.social-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.social-links a:hover::after {
    width: 100%;
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes underlineExpand {
    to {
        transform: scaleX(1);
        transform-origin: bottom left;
    }
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 123, 0, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(255, 123, 0, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 123, 0, 0);
    }
}

/* Media Queries for Responsive Design */

/* Small devices (phones, 576px and down) */
@media only screen and (max-width: 576px) {
    .hero-container h1 {
        font-size: 2rem;
    }
    
    .hero-container h1 .highlight {
        font-size: 2.5rem;
    }
    
    #typewriter {
        font-size: 1.2rem;
    }
    
    .profile-image {
        width: 120px;
        height: 120px;
    }
    
    .btn {
        padding: 0.4rem 0.6rem;
        font-size: 0.9rem;
        margin: 0.3rem;
        display: block;
        width: 80%;
    }
    
    #about, #skills, #experience, #projects, #contact {
        padding: 1.5rem 1rem;
    }
    
    .about-left, .about-right {
        padding: 1rem;
    }
    
    .education-list li {
        padding: 0.8rem;
    }
    
    .skill-card {
        padding: 1rem;
    }
    
    .project-card {
        padding: 1.5rem 1rem;
    }
    
    #contact form input, #contact form textarea {
        padding: 0.4rem;
        margin: 0.5rem 0;
    }
}

/* Medium devices (tablets, 768px and down) */
@media only screen and (max-width: 768px) {
    .nav-toggle {
        display: block;
    }
    
    nav ul.nav-menu {
        flex-direction: column;
        align-items: center;
        position: fixed;
        top: 0;
        left: -100%;
        width: 80%;
        height: 100vh;
        background: rgba(31, 31, 31, 0.95);
        padding-top: 4rem;
        transition: left 0.3s ease;
        z-index: 1000;
        box-shadow: 2px 0 5px rgba(0, 0, 0, 0.2);
    }
    
    nav ul.nav-menu.active {
        left: 0;
    }
    
    nav ul li {
        margin: 0.8rem 0;
        width: 100%;
        text-align: center;
    }
    
    nav ul li a {
        padding: 0.8rem;
        display: block;
        font-size: 1.1rem;
    }
    
    .about-left, .about-right {
        flex: 1 1 100%;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    .experience-item {
        width: 95%;
    }
}

/* Large devices (desktops, 992px and up) */
@media only screen and (min-width: 992px) {
    .about-left, .about-right {
        flex: 1 1 48%;
    }
    
    .skills-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .btn {
        display: inline-block;
        width: auto;
    }
}

/* Extra large devices (large desktops, 1200px and up) */
@media only screen and (min-width: 1200px) {
    .container {
        max-width: 1200px;
        margin: 0 auto;
    }
    
    .hero-container {
        max-width: 1300px;
        margin: 0 auto;
    }
    
    .about-container, .skills-grid, .experience-container {
        max-width: 1300px;
        margin: 0 auto;
    }
    
    #about {
        padding: 5rem 4rem;
    }
    
    .about-left, .about-right {
        padding: 3rem;
    }
}
