/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #0d0015;
    overflow-x: hidden;
    position: relative;
}

#network-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    display: block;
}

#network-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(13, 0, 21, 0.2);
    backdrop-filter: blur(4px);
    z-index: 1;
    pointer-events: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section:not(#hero) {
    background-color: rgba(255, 255, 255, 0.75);
    margin: 30px 120px;
    padding: 40px 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

footer {
    background-color: rgba(44, 62, 80, 0.75);
    margin: 30px 120px;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Header */
header {
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1100;
}

nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #2c3e50;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0.5rem;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 3px 0;
    transition: 0.3s;
}

.nav-links {
    list-style: none;
    display: flex;
}

.nav-links li {
    margin-left: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #3498db;
}

/* Hero Section */
#hero {
    background-image: url(images/bg_fin.png);
    background-repeat: no-repeat;
    background-size: cover;
    color: rgb(0, 0, 0);
    padding: 0;
    margin-top: 70px;
    text-align: center;
    position: relative;
    z-index: 10;
}

#hero .container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    padding: 30px 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.hero-image {
    flex: 0 0 auto;
    margin-left: 0;
}

.hero-image img {
    width: 400px;
    height: 400px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid white;
    display: block;
}

.hero-content {
    flex: 1;
    text-align: left;
    max-width: 500px;
    background: rgba(255, 235, 240, 0.7);
    padding: 30px;
    border-radius: 12px;
}

.hero-content h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.btn {
    display: inline-block;
    background-color: #3498db;
    color: white;
    padding: 0.8rem 2rem;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: #2980b9;
}

/* Sections */
section {
    padding: 80px 0;
    position: relative;
    z-index: 10;
    text-align: center;
}

section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #2c3e50;
}

section p {
    font-size: 1.1rem;
    line-height: 1.8;
}

/* Skills */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.skill {
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.skill h3 {
    margin-bottom: 1rem;
    color: #3498db;
}

.skill ul {
    list-style: none;
}

.skill li {
    margin-bottom: 0.5rem;
    padding-left: 1rem;
    position: relative;
}

.skill li:before {
    content: '✓';
    color: #27ae60;
    position: absolute;
    left: 0;
}

/* Projects */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.project {
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    text-align: center;
}

.project-image {
    width: 100%;
    max-width: 300px;
    height: 200px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.project h3 {
    margin-bottom: 1rem;
    color: #3498db;
}

.project .btn {
    margin-top: 1rem;
}

/* Education */
.education-item {
    background-color: white;
    padding: 2rem;
    margin-bottom: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.education-item h3 {
    margin-bottom: 0.5rem;
    color: #3498db;
}

/* Contact */
#contact h2 {
    margin-bottom: 0.5rem;
}

.contact-sub {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: #666;
}

#contact-form {
    margin-bottom: 2rem;
}

.form-row {
    margin-bottom: 1rem;
}

.form-row.two-up {
    display: flex;
    gap: 1rem;
}

.form-row.two-up label {
    flex: 1;
}

input, textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    font-family: inherit;
}

input:focus, textarea:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 5px rgba(52, 152, 219, 0.3);
}

textarea {
    resize: vertical;
    min-height: 120px;
}

.form-actions {
    text-align: center;
    margin-top: 1rem;
}

#contact-submit {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s;
}

#contact-submit:hover {
    background-color: #2980b9;
}

#form-status {
    margin-top: 1rem;
    font-weight: bold;
}

.contact-divider {
    border: none;
    border-top: 1px solid #eee;
    margin: 2rem 0;
}

.contact-social {
    text-align: center;
}

.contact-social h3 {
    margin-bottom: 1rem;
    color: #2c3e50;
}

.social-links {
    list-style: none;
    padding: 0;
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.social-links li a {
    display: inline-block;
    width: 120px;
    height: 120px;
    background-color: #f4f4f4;
    border-radius: 50%;
    text-align: center;
    line-height: 120px;
    color: #333;
    transition: all 0.3s;
    text-decoration: none;
    font-size: 3rem;
}

.social-links li a:hover {
    background-color: #3498db;
    color: white;
    transform: translateY(-2px);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Footer */
footer {
    background-color: rgba(44, 62, 80, 0.75);
    color: white;
    text-align: center;
    padding: 2rem 0;
    position: relative;
    z-index: 10;
    margin: 30px 120px;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Responsive Design */

/* Large screens (desktops, 1200px and up) */
@media (min-width: 1200px) {
    .container {
        max-width: 1400px;
    }
    
    #hero .container {
        max-width: 1000px;
    }
    
    section:not(#hero) {
        margin: 30px 120px;
    }
    
    footer {
        margin: 30px 120px;
    }
    
    .hero-content h2 {
        font-size: 4rem;
    }
    
    .hero-content p {
        font-size: 1.4rem;
    }
    
    .skills-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .projects-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Medium screens (tablets and small laptops, 768px to 1199px) */
@media (min-width: 768px) and (max-width: 1199px) {
    #hero .container {
        flex-direction: column;
        gap: 2rem;
        padding: 30px 20px;
    }
    
    .hero-image img {
        width: 300px;
        height: 300px;
    }
    
    .hero-content {
        text-align: center;
    }
    
    .hero-content h2 {
        font-size: 2.5rem;
    }
    
    section:not(#hero) {
        margin: 20px 40px;
    }
    
    footer {
        margin: 20px 40px;
    }
    
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .social-links li a {
        width: 80px;
        height: 80px;
        line-height: 80px;
        font-size: 2rem;
    }
}

/* Small screens (tablets, 576px to 767px) */
@media (min-width: 576px) and (max-width: 767px) {
    .container {
        padding: 0 15px;
    }
    
    #hero .container {
        flex-direction: column;
        gap: 1.5rem;
        padding: 20px 15px;
    }
    
    .hero-image img {
        width: 250px;
        height: 250px;
    }
    
    .hero-content {
        text-align: center;
        max-width: 100%;
        padding: 20px;
    }
    
    .hero-content h2 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1.1rem;
    }
    
    section:not(#hero) {
        margin: 15px 20px;
        padding: 30px 20px;
    }
    
    footer {
        margin: 15px 20px;
        padding: 1rem;
    }
    
    section {
        padding: 60px 0;
    }
    
    section h2 {
        font-size: 2rem;
        margin-bottom: 2rem;
    }
    
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row.two-up {
        flex-direction: column;
        gap: 0;
    }
    
    .social-links {
        gap: 0.5rem;
    }
    
    .social-links li a {
        width: 60px;
        height: 60px;
        line-height: 60px;
        font-size: 1.5rem;
    }
}

/* Extra small screens (phones, less than 576px) */
@media (max-width: 575px) {
    .container {
        padding: 0 10px;
    }
    
    #hero .container {
        flex-direction: column;
        gap: 1rem;
        padding: 15px 10px;
    }
    
    .hero-image img {
        width: 180px;
        height: 180px;
    }
    
    .hero-content {
        text-align: center;
        max-width: 100%;
        padding: 15px;
        background: rgba(255, 235, 240, 0.8) !important;
    }
    
    .hero-content h2 {
        font-size: 1.5rem;
    }
    
    .hero-content p {
        font-size: 0.95rem;
    }
    
    section:not(#hero) {
        margin: 10px 10px;
        padding: 25px 15px;
    }
    
    footer {
        margin: 10px 10px;
        padding: 1rem 10px;
    }
    
    nav .container {
        padding: 0.5rem 0;
    }
    
    .logo {
        font-size: 1.2rem;
    }
    
    .hamburger {
        display: flex;
    }
    
    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #fff;
        flex-direction: column;
        padding: 1rem 0;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        display: none;
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .nav-links li {
        margin: 0.5rem 0;
        text-align: center;
    }
    
    .hamburger.active .bar:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }
    
    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active .bar:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }
    
    section {
        padding: 40px 0;
    }
    
    section h2 {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .skill {
        padding: 1.5rem;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .project {
        padding: 1.5rem;
    }
    
    .project-image {
        height: 150px;
    }
    
    .education-item {
        padding: 1.5rem;
    }
    
    .form-row.two-up {
        flex-direction: column;
        gap: 0;
    }
    
    input, textarea {
        padding: 0.6rem;
        font-size: 0.9rem;
    }
    
    .social-links {
        flex-wrap: wrap;
        gap: 0.5rem;
        justify-content: center;
    }
    
    .social-links li a {
        width: 50px;
        height: 50px;
        line-height: 50px;
        font-size: 1.2rem;
    }
    
    footer {
        padding: 1.5rem 0;
    }
    
    footer p {
        font-size: 0.9rem;
    }
}