/* ============================
    1. CSS VARIABLES & RESET
    ============================ */
:root {
     --bg-color: #0a192f;
     --text-color: #8892b0;
     --highlight-color: #64ffda;
     --secondary-color: #112240;
}

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

/* ============================
    2. BASE STYLES
    ============================ */
body {
     font-family: 'Inter', sans-serif;
     background-color: var(--bg-color);
     color: var(--text-color);
     line-height: 1.6;
     overflow-x: hidden;
}

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

/* ============================
    3. TYPOGRAPHY
    ============================ */
h1, h2 {
     color: #ccd6f6;
     margin-bottom: 1rem;
}

h1 {
     font-size: 3rem;
     font-weight: 700;
}

h2 {
     font-size: 2rem;
     font-weight: 600;
}

p {
     margin-bottom: 1rem;
     font-size: 1rem;
}

/* ============================
    4. HEADER & NAVIGATION
    ============================ */
header {
     position: fixed;
     width: 100%;
     top: 0;
     left: 0;
     padding: 1rem 0;
     background-color: rgba(10, 25, 47, 0.85);
     backdrop-filter: blur(10px);
     z-index: 1000;
     transition: all 0.3s ease;
}

nav {
     display: flex;
     justify-content: center;
     align-items: center;
     padding: 0 2rem;
     height: 4rem;
}

nav ul {
     display: flex;
     list-style: none;
     justify-content: center;
     flex-wrap: wrap;
     gap: 2rem;
     margin: 0;
     padding: 0;
}

nav ul li a {
     color: var(--text-color);
     text-decoration: none;
     font-size: 0.9rem;
     font-weight: 500;
     letter-spacing: 0.5px;
     padding: 0.5rem 0;
     position: relative;
     transition: all 0.3s ease;
}

nav ul li a::after {
     content: '';
     position: absolute;
     width: 0;
     height: 2px;
     bottom: 0;
     left: 0;
     background-color: var(--highlight-color);
     transition: width 0.3s ease;
}

nav ul li a:hover {
     color: var(--highlight-color);
}

nav ul li a:hover::after {
     width: 100%;
}

/* ============================
    5. SECTIONS & ANIMATIONS
    ============================ */
section {
     padding: 100px 0;
     opacity: 0;
     transform: translateY(20px);
     transition: opacity 0.5s ease-out, transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

section.visible {
     opacity: 1;
     transform: translateY(0);
}

/* ============================
    6. HERO SECTION
    ============================ */
.hero {
     height: 100vh;
     display: flex;
     align-items: center;
}

.hero-content {
     max-width: 600px;
}

.hero h1 span {
     color: var(--highlight-color);
     display: block;
     font-size: 1.2rem;
     margin-bottom: 1rem;
}

/* ============================
    7. ABOUT SECTION
    ============================ */
.about-content {
     display: flex;
     align-items: center;
     justify-content: space-between;
     gap: 3rem;
     margin: 3rem 0;
}

.about-text {
     flex: 1;
     max-width: 600px;
}

.portrait {
     flex: 0 0 350px;
     position: relative;
     display: flex;
     justify-content: center;
     align-items: center;
}

.portrait-img {
     width: 100%;
     height: 350px;
     object-fit: cover;
     border-radius: 12px;
     box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
     transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
     position: relative;
}

.portrait-img:hover {
     transform: translateY(-8px);
     box-shadow: 0 15px 40px rgba(100, 255, 218, 0.15);
}

/* ============================
    8. COMPONENTS
    ============================ */
.btn {
     display: inline-block;
     background-color: transparent;
     color: var(--highlight-color);
     border: 1px solid var(--highlight-color);
     padding: 0.75rem 1.5rem;
     font-size: 0.9rem;
     text-decoration: none;
     transition: all 0.3s ease;
     margin-top: 1rem;
}

.btn:hover {
     background-color: rgba(100, 255, 218, 0.1);
}

/* ============================
    9. SECTION STYLES
    ============================ */
.about, .skills, .projects, .contact {
     background-color: var(--secondary-color);
     border-radius: 4px;
     padding: 2rem;
     margin-bottom: 2rem;
}

/* Skills Section */
.skills ul {
     display: flex;
     flex-wrap: wrap;
     list-style: none;
     gap: 1.2rem;
     margin-top: 1.5rem;
     perspective: 1000px;
}

.skills ul li {
     background-color: rgba(100, 255, 218, 0.05);
     color: var(--highlight-color);
     padding: 0.75rem 1.25rem;
     border-radius: 25px;
     font-size: 0.9rem;
     border: 1px solid rgba(100, 255, 218, 0.1);
     transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
     position: relative;
     overflow: hidden;
     cursor: pointer;
     box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.skills ul li:hover {
     transform: translateY(-5px) rotateX(10deg);
     background-color: rgba(100, 255, 218, 0.15);
     border-color: var(--highlight-color);
     box-shadow: 0 8px 15px rgba(100, 255, 218, 0.2);
}

.skills ul li::before {
     content: '';
     position: absolute;
     top: 0;
     left: -100%;
     width: 100%;
     height: 100%;
     background: linear-gradient(
          120deg,
          transparent,
          rgba(100, 255, 218, 0.2),
          transparent
     );
     transition: 0.5s;
}

.skills ul li:hover::before {
     left: 100%;
}

/* Projects Section */
.projects-grid {
     display: grid;
     grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
     gap: 2rem;
     margin-top: 2.5rem;
}

.project-card {
     background-color: var(--bg-color);
     border-radius: 8px;
     padding: 2rem;
     border: 1px solid rgba(100, 255, 218, 0.1);
     box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
     transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-card:hover {
     transform: translateY(-8px);
     box-shadow: 0 8px 30px rgba(100, 255, 218, 0.1);
     border-color: var(--highlight-color);
}

.project-card h3 {
     color: #ccd6f6;
     font-size: 1.4rem;
     margin-bottom: 1rem;
     font-weight: 600;
}

/* Contact Section */
.contact .contact-icons {
     list-style: none;
     display: flex;
     justify-content: center;
     gap: 2rem;
     padding: 2.5rem 0;
     flex-wrap: wrap;
}

.contact .contact-icons li {
     font-size: 2.0rem;
     transform: translateY(0);
     transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.contact .contact-icons a {
     color: var(--text-color);
     text-decoration: none;
     transition: all 0.3s ease;
     position: relative;
     padding: 0rem;
}

.contact .contact-icons a:hover {
     color: var(--highlight-color);
     transform: translateY(-5px);
}

.contact .contact-icons li:hover {
     transform: translateY(-5px) scale(1.1);
}

/* ============================
    10. FOOTER
    ============================ */
footer {
     text-align: center;
     padding: 2rem 0;
     font-size: 0.9rem;
}

/* ============================
    11. MEDIA QUERIES
    ============================ */
/* Tablets (1024px and below) */
@media (max-width: 1024px) {
     .container {
          padding: 0 1.5rem;
     }
}

/* Mobile Devices (768px and below) */
@media (max-width: 768px) {
     .hero-content {
          max-width: 100%;
     }

     .hero h1 {
          font-size: 2.5rem;
          transition: font-size 0.3s ease;
     }

     .hero h1 span {
          font-size: 1rem;
     }

     .about-content {
          flex-direction: column-reverse;
          text-align: center;
          gap: 2rem;
     }
     
     .portrait {
          flex: 0 0 280px;
     }

     .portrait-img {
          height: 280px;
     }

     section {
          padding: 80px 0;
     }

     .about, .skills, .projects, .contact {
          padding: 1.5rem;
          margin-bottom: 1.5rem;
     }

     .projects-grid {
          gap: 1.5rem;
     }

     .project-card {
          padding: 1.5rem;
     }

     .contact .contact-icons {
          gap: 1.5rem;
          padding: 1.5rem 0;
     }
}

/* Small Devices (600px and below) */
@media (max-width: 600px) {
     nav {
          padding: 0 1rem;
          height: 3.5rem;
     }

     nav ul {
          gap: 0.75rem;
          padding: 0 0.5rem;
     }

     nav ul li a {
          font-size: 0.85rem;
          padding: 0.25rem 0;
     }

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

     .skills ul li {
          padding: 0.5rem 1rem;
          font-size: 0.85rem;
     }
}
