/* ===== BASE STYLES ===== */
:root {
  /* Colors */
  --primary-text: #212529;        /* Dark gray for text */
  --secondary-text: #6c757d;      /* Medium gray for subtitles */
  --label-bg: #e9ecef;            /* Light gray for labels */
  --scroll-text: #adb5bd;         /* Light gray for scroll prompt */
  --background: #f8f9fa;          /* Page background */

  /* Fonts */
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-weight-bold: 700;
  --font-weight-normal: 400;

  /* Spacing */
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 2rem;
  --space-xl: 3rem;

  /* Borders */
  --border-radius: 2rem;          /* Rounded labels */
}

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

img {
    max-width: 100%;
    height: auto;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
    
}

/* Navigation responsive */
@media (max-width: 768px) {
    .labels {
        padding: 1rem;
        flex-wrap: wrap;
    }
    
    .label {
        font-size: 0.8rem;
        padding: 0.5rem 1rem;
    }
}

/* Hero section responsive */
@media (max-width: 768px) {
    .hero-content {
        padding: 0 1rem;
    }
    
    .name {
        font-size: 2.5rem;
    }
    
    .title {
        font-size: 1.5rem;
    }
    
    .greeting {
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    .hero-btn {
        width: 100%;
        text-align: center;
    }
}

/* About section responsive */
@media (max-width: 768px) {
    .about-container {
        flex-direction: column;
        padding: 2rem 1rem;
    }
    
    .about-image {
        width: 200px;
        height: 200px;
        margin: 0 auto 2rem;
    }
    
    .about-content {
        text-align: center;
    }
    
    .about-text {
        font-size: 1rem;
        padding: 0 1rem;
    }
}

/* Projects section responsive */
@media (max-width: 1024px) {
    .project-container {
        grid-template-columns: repeat(2, 1fr);
        padding: 1rem;
    }
}

@media (max-width: 768px) {
    .project-container {
        grid-template-columns: 1fr;
    }
    
    .project-card {
        margin: 1rem 0;
    }
    
    .project-image {
        height: 200px;
    }
}

/* General responsive utilities */
@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
        margin-bottom: 1.5rem;
    }
    
    p {
        font-size: 1rem;
        line-height: 1.6;
    }
}

/* Small screen adjustments */
@media (max-width: 480px) {
    html {
        font-size: 14px;
    }
    
    .name {
        font-size: 2rem;
    }
    
    .project-tags {
        flex-wrap: wrap;
    }
    
    .tag {
        margin: 0.25rem;
    }
}

/* Reset & Base */
body {
  font-family: var(--font-main);
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  height: auto;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-color: var(--background);
  color: var(--primary-text);
  line-height: 1.6;
  background-color: var(--background);
}

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

/* ===== ABOUT SECTION ===== */
.about {
    padding: 5rem 0;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    text-align: right;
    background-color: var(--background);
}

.about-container {
    display: flex;
    align-items: center;
    gap: 4rem;
    max-width: 1000px;
    margin: 0 auto;
}

.about-image {
    flex-shrink: 0;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid rgb(48, 150, 251);
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-content {
    flex: 1;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .about-container {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }

    .about-image {
        width: 200px;
        height: 200px;
    }
}

.section-title {
    font-size: 2.5rem;
    color: var(--primary-text);
    margin-bottom: 2rem;
    position: relative;
    display: block; /* Changed from inline-block to block */
    text-align: center; /* Ensure text is centered */
    width: 100%; /* Take full width */
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: rgb(48, 150, 251);
    border-radius: 2px;
}

.about-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--secondary-text);
    margin-bottom: 1.5rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .about {
        padding: 3rem 1.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .about-text {
        font-size: 1rem;
        line-height: 1.6;
    }
}

/* ===== HERO SECTION ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 0;
    width: 100vw;
    margin: 0;
    background: linear-gradient(-45deg, 
        rgb(48, 150, 251),
        rgb(48, 150, 251, 0.5),
        rgb(24, 110, 239),
        rgb(48, 150, 251, 0.5)
    );
    background-size: 400% 400%;
    animation: gradient 15s ease infinite;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(255,255,255,0.1) 0%, transparent 70%);
    pointer-events: none;
    text-align: center;
    max-width: 800px;
    z-index: 1;
    padding: 2rem;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-top: 2rem;
}

.hero-btn {
    padding: 1rem 2rem;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 500;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.hero-btn.primary {
    background-color: white;
    color: rgb(48, 150, 251);
}

.hero-btn.secondary {
    background-color: transparent;
    color: white;
    border: 2px solid white;
}

@media (max-width: 768px) {
    .name {
        font-size: 3rem;
    }
    
    .title {
        font-size: 1.5rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    .hero-btn {
        width: 100%;
        text-align: center;
    }
}

.hero-content {
    text-align: center;
    max-width: 800px;
}

.hero h1,
.hero p {
    opacity: 0;
    animation: fadeIn 1s ease forwards;
}

.hero .name { animation-delay: 0.3s; }
.hero .title { animation-delay: 0.6s; }
.hero .greeting { animation-delay: 0.9s; }
.hero .scroll-prompt { animation-delay: 1.2s; }

/* Name */
.name {
    font-size: 4.5rem;
    margin-bottom: 1rem;
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
    font-weight: 700;
    letter-spacing: -0.5px;
}

/* Title (Web Developer) */
.title {
    font-size: 2rem;
    color: rgba(255,255,255,0.9);
    margin-bottom: 1.5rem;
    font-weight: 500;
}

/* ===== CONTACT SECTION ===== */
.contact {
    padding: 5rem 0;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    background-color: var(--background);
}

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

.contact .section-title {
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary-text);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: rgb(48, 150, 251);
    border-radius: 2px;
}

.contact-text {
    text-align: center;
    font-size: 1.1rem;
    color: var(--secondary-text);
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

.contact-text a {
    color: rgb(48, 150, 251);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-text a:hover {
    color: rgb(24, 110, 239);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    color: var(--primary-text);
    font-weight: 500;
    font-size: 0.9rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-family: var(--font-main);
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background-color: white;
}

.contact-form textarea {
    min-height: 150px;
    resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: rgb(48, 150, 251);
    box-shadow: 0 0 0 3px rgba(48, 150, 251, 0.1);
}

.contact-form button {
    align-self: center;
    background-color: rgb(48, 150, 251);
    color: white;
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.contact-form button:hover {
    transform: translateY(-2px);
    background-color: rgb(24, 110, 239);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .contact {
        padding: 3rem 0;
    }

    .contact-container {
        padding: 0 1.5rem;
    }

    .contact-text {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    .contact-form {
        gap: 1rem;
    }

    .contact-form input,
    .contact-form textarea {
        padding: 0.8rem;
    }
}

/* Labels */
.labels {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  margin-bottom: var(--space-xl);
}

.label {
  background-color: var(--label-bg);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--border-radius);
  font-size: 0.875rem;
}

/* Greeting (Hello!) */
.greeting {
    font-size: 1.25rem;
    color: rgba(255,255,255,0.8);
    margin-bottom: 2rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 3rem;
}

.btn {
    padding: 0.8rem 1.5rem;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    transition: transform 0.2s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn.primary {
    background-color: #0984e3;
    color: white;
}

.btn.secondary {
    background-color: transparent;
    color: #0984e3;
    border: 2px solid #0984e3;
}

nav.labels {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1rem 0;
    background-color: rgba(255, 255, 255, 0.9);
    display: flex;
    justify-content: center;
    gap: 2rem;
    z-index: 1000;
}

.label {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
}

.label:hover {
    color: #007bff;
}

/* Scroll Prompt */
.scroll-prompt {
    position: absolute;
    bottom: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    color:#e9ecef;
    animation: bounce 2s infinite;
}

.scroll-arrow {
    font-size: 1.5rem;
    color:#e9ecef;
}

.project-container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    gap: 2rem;  /* This adds space between cards */
    padding: 2rem 0;
    flex-wrap: wrap;
}

.project-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    width: 350px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    margin: 1rem;  /* This adds additional space around each card */
}

.project-content {
    padding: 1.5rem 2rem;  /* Increased padding around content */
}

.project-content h3 {
    margin-top: 0.5rem;
    margin-bottom: 1rem;
    color: #2d3436;
    font-size: 1.25rem;
}

.project-content p {
    color: #636e72;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.8rem;
}

.project-tags span {
    background-color: var(--label-bg);
    padding: 0.3rem 0.6rem;
    border-radius: var(--border-radius);
    font-size: 0.875rem;
    color: #2d3436;
    transition: background-color 0.3s ease;
}

.project-link {
    display: inline-block;
    margin-top: 0.5rem;
}

.project-image {
    width: 100%;
    height: 250px;
    position: relative;
    overflow: hidden;
    border-radius: 10px 10px 0 0;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.05);
}

.about-container,
.project-card {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .project-image {
        height: 200px;
    }
}

/* Animations */
@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes gradient {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}
