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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'sora', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    line-height: 1.6;
    overflow-x: hidden;
    margin: 0;
    padding-top: 0;
}

h1, h2, p {
    margin: 0;
}

ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

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

/* Navigation */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    background: #6d06bc65;
    backdrop-filter: blur(6px);
    z-index: 1000;
    padding: 8px 15px;
    transition: all 0.3s ease;
    margin: 10px auto;
    max-width: calc(100% - 20px);
    border-radius: 50px;
}

nav.scrolled {
    background: #6d06bc65;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 15px;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #e0e0e0;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: #e0e0e0;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a:hover {
    color: #c994f165;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #c994f165;
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.mobile-menu {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.mobile-menu span {
    width: 25px;
    height: 3px;
    background: #e0e0e0;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
    background-image: url(Back.jpg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
    padding: 80px 20px 40px;
}

#hello {
    font-family: "Aquier", sans-serif;
}

.orb-container {
    position: absolute;
    top: 45%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 750px;
    height: 750px;
    z-index: 1;
    justify-content: center;
}

.hero-content {
    position: relative;
    z-index: 2;
    animation: fadeInUp 1s ease-out;
    padding: 20px;
}

.hero h1 {
    font-size: clamp(2rem, 8vw, 4rem);
    margin-bottom: 20px;
    background: linear-gradient(45deg, #fff, #f0f0f0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: clamp(1rem, 4vw, 1.5rem);
    margin-bottom: 30px;
    opacity: 0.9;
}

.cta-button {
    display: inline-block;
    padding: 12px 30px;
    background: none;
    border: 3px solid transparent;
    background-image: linear-gradient(#1a1a2e, #1a1a2e), linear-gradient(45deg, #3e145e65, #764ba2);
    background-origin: border-box;
    background-clip: padding-box, border-box;
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
    background-color: #36095a;
}

/* Sections */
section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: clamp(1.8rem, 5vw, 2.5rem);
    margin-bottom: 60px;
    color: #e0e0e0;
    position: relative;
    padding: 0 20px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(45deg, #667eea, #764ba2);
    border-radius: 2px;
}

/* About Section */
.about {
    background: #1902297a;
    background-image: url(Back.jpg);
    background-size: cover;
    background-position: center;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
    align-items: center;
}

.about-image {
    width: 100%;
    height: 400px;
    background-image: url(Me3.png);
    background-position: center;
    background-size: cover;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.about-image:hover {
    transform: scale(1.05);
}

.about-text {
    font-size: clamp(1rem, 2.5vw, 1.1rem);
    line-height: 1.8;
    color: #b0b0b0;
}

.about-text h3 {
    color: #e0e0e0;
    margin-bottom: 20px;
    font-size: clamp(1.3rem, 4vw, 1.8rem);
}

/* Skills Section */
.skills {
    background: #150050;
    background-image: url(Back.jpg);
    background-size: cover;
    background-position: center;
}

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

.skill-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    text-align: center;
    transition: all 0.3s ease;
}

.skill-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.skill-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(45deg, #1902297a, #764ba2);
    border-radius: 50%;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
}

.skill-card h3 {
    margin-bottom: 15px;
    color: #e0e0e0;
    font-size: clamp(1.1rem, 3vw, 1.3rem);
}

.skill-card p {
    color: #b0b0b0;
    line-height: 1.6;
    font-size: clamp(0.9rem, 2vw, 1rem);
}

/* Resume Section */
.resume {
    background: #100430;
    background-image: url(Back.jpg);
    background-size: cover;
    background-position: center;
}

.resume-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.resume-content p {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    color: #b0b0b0;
    margin-bottom: 40px;
    line-height: 1.8;
}

.resume-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.resume-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 25px;
    background: none;
    border: 3px solid transparent;
    background-image: linear-gradient(#100430, #100430), linear-gradient(45deg, #3e145e65, #764ba2);
    background-origin: border-box;
    background-clip: padding-box, border-box;
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: clamp(0.9rem, 2.5vw, 1.1rem);
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.resume-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.6);
    background-color: #36095a;
}

.resume-btn.secondary {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 2px solid #667eea;
}

.resume-btn.secondary:hover {
    background: rgba(102, 126, 234, 0.2);
}

.resume-icon {
    font-size: 1.2rem;
}

/* Projects Section */
.projects {
    background: #150050;
    background-image: url(Back.jpg);
    background-size: cover;
    background-position: center;
}

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

.project-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.project-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(45deg, #667eea, #764ba2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

.project-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.project-content {
    padding: 30px;
}

.project-content h3 {
    margin-bottom: 15px;
    color: #e0e0e0;
    font-size: clamp(1.1rem, 3vw, 1.3rem);
}

.project-content p {
    color: #b0b0b0;
    margin-bottom: 20px;
    line-height: 1.6;
    font-size: clamp(0.9rem, 2vw, 1rem);
}

.project-links {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.project-link {
    padding: 10px 20px;
    background: linear-gradient(45deg, #3a0450, #764ba2);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-size: clamp(0.8rem, 2vw, 0.9rem);
    transition: all 0.3s ease;
}

.project-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(229, 119, 233, 0.4);
}

/* Contact Section */
.contact {
    background: #1c011f;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.contact-info h3 {
    margin-bottom: 30px;
    color: #e0e0e0;
    font-size: clamp(1.2rem, 3.5vw, 1.5rem);
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    color: #b0b0b0;
    font-size: clamp(0.9rem, 2vw, 1rem);
}

.contact-item i {
    width: 40px;
    height: 40px;
    background: linear-gradient(45deg, #3a0450, #764ba2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin-right: 15px;
    flex-shrink: 0;
}

.contact-form {
    background: rgba(82, 62, 87, 0.1);
    backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #e0e0e0;
    font-weight: 500;
    font-size: clamp(0.9rem, 2vw, 1rem);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    font-size: clamp(0.9rem, 2vw, 1rem);
    background: rgba(255, 255, 255, 0.1);
    color: #e0e0e0;
    transition: border-color 0.3s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #888;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    background: rgba(255, 255, 255, 0.15);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.submit-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(45deg, #3a0450, #764ba2);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: clamp(1rem, 2.5vw, 1.1rem);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

/* Footer */
footer {
    background: #0f0f1f;
    color: white;
    text-align: center;
    padding: 40px 20px;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.social-links a {
    width: 50px;
    height: 50px;
    background: linear-gradient(45deg, #3a0450, #764ba2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-links a:hover {
    transform: translateY(-5px);
}

/* Utilities */
.mylogo {
    height: 40px;
    width: auto;
    max-width: 100%;
}

.hyperlink {
    color: #b0b0b0;
}

.hyperlink:hover {
    color: #ffff;
}

.hyperlink:active {
    color: #b0b0b0;
}

.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

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

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

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

/* Font Face */
@font-face {
    font-family: "Aquier";
    src: url("components/font/AquireBold-8Ma60.otf") format("opentype");
    font-weight: normal;
    font-style: normal;
}

/* ========================================
   RESPONSIVE DESIGN - MOBILE FIRST
   ======================================== */

/* Tablets and smaller (iPad, etc.) */
@media (max-width: 1024px) {
    .container {
        padding: 0 15px;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .about-image {
        height: 350px;
        background-size: cover;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* Mobile Devices (iPhone, Android) */
@media (max-width: 768px) {
    body {
        padding-top: 0;
    }
    
    nav {
        margin: 5px 10px;
        padding: 8px 10px;
        max-width: calc(100% - 20px);
    }
    
    .nav-container {
        padding: 0 10px;
    }
    
    .logo {
        font-size: 1.2rem;
    }
    
    .nav-links {
        display: none;
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        background: #6d06bcdd;
        backdrop-filter: blur(10px);
        flex-direction: column;
        gap: 0;
        padding: 20px;
        border-radius: 20px;
        margin: 0 10px;
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .nav-links li {
        width: 100%;
        text-align: center;
        padding: 10px 0;
    }
    
    .mobile-menu {
        display: flex;
    }
    
    .hero {
        min-height: 100vh;
        padding: 100px 15px 40px;
    }
    
    .hero h1 {
        font-size: 2rem;
        margin-bottom: 15px;
    }
    
    .hero p {
        font-size: 1rem;
        margin-bottom: 25px;
    }
    
    .orb-container {
        width: 250px;
        height: 250px;
        top: 40%;
    }
    
    .cta-button {
        padding: 12px 25px;
        font-size: 0.9rem;
    }
    
    section {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 1.8rem;
        margin-bottom: 40px;
    }
    
    .about-image {
        height: 300px;
        background-size: cover;
    }
    
    .about-text {
        font-size: 1rem;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .skill-card {
        padding: 25px;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .project-image {
        height: 180px;
    }
    
    .project-content {
        padding: 20px;
    }
    
    .resume-buttons {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }
    
    .resume-btn {
        width: 100%;
        justify-content: center;
    }
    
    .contact-form {
        padding: 20px;
    }
    
    .contact-item {
        font-size: 0.9rem;
    }
    
    .social-links {
        gap: 15px;
    }
    
    .social-links a {
        width: 45px;
        height: 45px;
    }
}

/* Small Mobile Devices (iPhone SE, etc.) */
@media (max-width: 480px) {
    body {
        padding-top: 0;
    }
    
    .container {
        padding: 0 10px;
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .hero p {
        font-size: 0.95rem;
    }
    
    .orb-container {
        width: 200px;
        height: 200px;
    }
    
    .section-title {
        font-size: 1.6rem;
        margin-bottom: 30px;
    }
    
    .about-image {
        height: 250px;
    }
    
    .skill-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .project-image {
        height: 150px;
    }
    
    .project-content {
        padding: 15px;
    }
    
    .project-links {
        flex-direction: column;
    }
    
    .project-link {
        text-align: center;
    }
    
    .contact-item i {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 10px;
    }
}

/* iPhone X and similar (notch devices) */
@media only screen and (device-width: 375px) and (device-height: 812px) and (-webkit-device-pixel-ratio: 3) {
    body {
        padding-top: 0;
        padding-bottom: env(safe-area-inset-bottom, 0);
    }
    
    nav {
        top: env(safe-area-inset-top, 0);
    }
}

/* Dark Mode Styles */
body.dark-mode {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #e0e0e0;
}

body.dark-mode nav {
    background: rgba(26, 26, 46, 0.95);
}

body.dark-mode nav.scrolled {
    background: rgba(26, 26, 46, 0.98);
}

body.dark-mode .logo,
body.dark-mode .nav-links a {
    color: #e0e0e0;
}

body.dark-mode .nav-links a:hover {
    color: #667eea;
}

body.dark-mode .mobile-menu span {
    background: #e0e0e0;
}

body.dark-mode .about {
    background: #1a1a2e;
}

body.dark-mode .skills {
    background: #16213e;
}

body.dark-mode .projects {
    background: #1a1a2e;
}

body.dark-mode .contact {
    background: #16213e;
}

body.dark-mode .section-title {
    color: #e0e0e0;
}

body.dark-mode .about-text {
    color: #b0b0b0;
}

body.dark-mode .about-text h3 {
    color: #e0e0e0;
}

body.dark-mode .skill-card {
    background: #3F0071;
    backdrop-filter: blur(10px);
}

body.dark-mode .skill-card h3 {
    color: #e0e0e0;
}

body.dark-mode .skill-card p {
    color: #b0b0b0;
}

body.dark-mode .project-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

body.dark-mode .project-content h3 {
    color: #e0e0e0;
}

body.dark-mode .project-content p {
    color: #b0b0b0;
}

body.dark-mode .contact-info h3 {
    color: #e0e0e0;
}

body.dark-mode .contact-item {
    color: #b0b0b0;
}

body.dark-mode .contact-form {
    background: #150050;
    backdrop-filter: blur(10px);
}

body.dark-mode .form-group label {
    color: #e0e0e0;
}

body.dark-mode .form-group input,
body.dark-mode .form-group textarea {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: #e0e0e0;
}

body.dark-mode .form-group input::placeholder,
body.dark-mode .form-group textarea::placeholder {
    color: #888;
}

body.dark-mode .form-group input:focus,
body.dark-mode .form-group textarea:focus {
    border-color: #667eea;
    background: rgba(255, 255, 255, 0.15);
}
