/* CSS Custom Properties for easy maintenance */
:root {
    --primary-color: #88a2bf;
    --primary-hover: #9fb5d0;
    --dark-bg: #141318;
    --card-bg: rgba(136, 162, 191, 0.1);
    --border-color: rgba(136, 162, 191, 0.2);
    --text-primary: #ffffff;
    --text-secondary: #e0e0e0;
    --text-muted: #c0c0c0;
    --transition-speed: 0.3s;
}

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

@font-face {
    font-family: 'Anurati';
    src: url('Fonts/Anurati.otf') format('opentype'); 
}

body {
    background: linear-gradient(150deg, var(--primary-color), var(--dark-bg) 45%);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
}

/* Header Styles */
header {
    display: flex;
    justify-content: space-between;
    padding: 20px 50px;
    align-items: center;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background: rgba(20, 19, 24, 0.8);
    backdrop-filter: blur(10px);
    transition: all var(--transition-speed) ease;
}

header.scrolled {
    padding: 15px 50px;
    background: rgba(20, 19, 24, 0.95);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

h1 {
    font-family: 'Anurati', sans-serif;
    font-size: 1.5rem;
    letter-spacing: 2px;
}

/* Navigation Styles */
nav {
    display: flex;
    gap: 30px;
    align-items: center;
}

nav a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 1rem;
    transition: color var(--transition-speed) ease;
    position: relative;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width var(--transition-speed) ease;
}

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

nav a:hover {
    color: var(--primary-color);
}

.nav-btn {
    padding: 10px 25px;
    background: var(--primary-color);
    border: none;
    border-radius: 5px;
    color: var(--dark-bg);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
}

.nav-btn:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(136, 162, 191, 0.4);
}

/* Hero Section */
.hero-section {
    min-height: auto;
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    padding: 120px 20px 20px 40px;
    gap: 30px;
    width: 100%;
}

.hero-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    width: 50%;
    flex-shrink: 0;
}

.hero-text p {
    font-size: 1.5rem;
    color: white;
    animation: fadeInUp 0.8s ease;
    margin: 0;
}

.hero-text span {
    color: white;
    font-size: 3.5rem;
    font-weight: 900;
}

.hero-text h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 5rem;
    font-weight: 900;
    line-height: 1.2;
    animation: fadeInUp 1s ease;
    margin: 15px 0 30px 0;
    margin-top: -10px;
    color: #141318;
    text-shadow: 1px 1px 0 #ffffff, 
                 6px 6px 6px rgba(0, 0, 0, 0.3);
}

.hero-text h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 3rem;
    font-weight: 600;
    line-height: 1.2;
    animation: fadeInUp 1s ease;
    margin-bottom: 15px;
    margin-top: -25px;
    color: #141318;
    text-shadow: 1px 1px 0 #989797, 
                 3px 3px 6px rgba(0, 0, 0, 0.3);
}

.hero-btn {
    padding: 15px 40px;
    font-size: 1.1rem;
    color: var(--dark-bg);
    background: var(--primary-color);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
    font-weight: 600;
    animation: fadeInUp 1.2s ease;
    width: fit-content;
}

.hero-btn:hover {
    background: var(--primary-hover);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(136, 162, 191, 0.4);
}

.hero-social {
    display: flex;
    gap: 20px;
    margin-top: 10px;
    animation: fadeInUp 1.4s ease;
}

.hero-social-h {
    color: #212025;
    text-shadow: 1px 1px 0 #ffffff, 
                 3px 2px 6px rgba(121, 119, 119, 0.3);
    font-size: 2rem;
    margin-top: 1rem;
}

.hero-social a {
    color: white;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgb(10, 10, 10);
    border: 2px solid rgba(1, 2, 2, 0.3);
}

.hero-social a:hover {
    color: #000000;
    background: rgba(255, 255, 255, 0.3);
    border-color: #88a2bf;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(13, 13, 14, 0.4);
}

.hero-img {
    width: 650px;
    height: 650px;
    object-fit: cover;
    box-shadow: 0 10px 20px rgba(255, 255, 255, 0.5);
    animation: fadeInUp 1.4s ease;
    flex-shrink: 0;
    margin-left: auto;
    margin-right: 3rem;
    border-radius: 50%;
}

/* Section Styles */
section {
    padding: 100px 50px;
    min-height: auto;
}

.section-title {
    font-family: Georgia, Times, 'Times New Roman', serif;
    font-size: 1rem;
    margin-bottom: 15px;
    text-align: center;
    text-transform: capitalize;
    letter-spacing: 3px;
}

/* About Section */
#about {
    text-align: center;
}

#about .section-title {
    display: inline-block;
    padding: 10px 20px;
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 50px;
}

.about-image {
    width: 100%;
    height: 300px;
    background: linear-gradient(135deg, var(--primary-color), #5a7a9e);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    opacity: 0.8;
}

.about-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary);
    text-align: left;
}

/* Portfolio Section */
#portfolio {
    padding-top: 50px;
    margin-top: -50px;
}

.portfolio-nav {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.portfolio-nav button {
    padding: 10px 25px;
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--text-primary);
    border-radius: 25px;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
    font-size: 1rem;
}

.portfolio-nav button:hover,
.portfolio-nav button.active {
    background: var(--primary-color);
    color: var(--dark-bg);
    transform: translateY(-2px);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto 50px;
}

.project-card {
    background: var(--card-bg);
    border-radius: 10px;
    overflow: hidden;
    transition: all var(--transition-speed) ease;
    border: 1px solid var(--border-color);
    cursor: pointer;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(136, 162, 191, 0.3);
    border-color: var(--primary-color);
}

.project-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #5a7a9e, var(--primary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
}

.project-info {
    padding: 25px;
}

.project-info h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.project-info p {
    color: var(--text-muted);
    line-height: 1.6;
}

.view-all-btn {
    display: block;
    margin: 0 auto;
    padding: 10px 20px;
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--text-primary);
    border-radius: 5px;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
    font-size: 1.1rem;
    font-weight: 600;
    margin-top: -15px;
}

.view-all-btn:hover {
    background: var(--primary-color);
    color: var(--dark-bg);
    transform: translateY(-2px);
}

/* Services Section */
#services {
    padding-top: 20px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.service-card {
    background: var(--card-bg);
    padding: 40px 30px;
    border-radius: 10px;
    text-align: center;
    transition: all var(--transition-speed) ease;
    border: 1px solid var(--border-color);
    cursor: pointer;
}

.service-card:hover {
    transform: translateY(-10px);
    background: rgba(136, 162, 191, 0.15);
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(136, 162, 191, 0.2);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.service-card p {
    color: var(--text-muted);
    line-height: 1.6;
}

/* Contact Section */
#contact {
    padding-top: 20px;
}

.contact-container {
    max-width: 600px;
    margin: 0 auto;
    background: var(--card-bg);
    padding: 50px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    color: var(--primary-color);
    font-weight: 600;
}

.form-group input,
.form-group textarea {
    padding: 15px;
    background: rgba(20, 19, 24, 0.5);
    border: 1px solid rgba(136, 162, 191, 0.3);
    border-radius: 5px;
    color: var(--text-primary);
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    transition: all var(--transition-speed) ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(20, 19, 24, 0.7);
    box-shadow: 0 0 0 3px rgba(136, 162, 191, 0.1);
}

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

.submit-btn {
    padding: 15px;
    background: var(--primary-color);
    border: none;
    border-radius: 5px;
    color: var(--dark-bg);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
}

.submit-btn:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(136, 162, 191, 0.4);
}

/* Footer */
footer {
    text-align: center;
    padding: 20px 0;
    background: rgba(20, 19, 24, 0.9);
    color: var(--text-muted);
    font-size: 0.9rem;
    border-top: 1px solid rgba(136, 162, 191, 0.2);
}

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

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 1001;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    transition: all var(--transition-speed) ease;
    border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* ============================================
   RESPONSIVE MEDIA QUERIES
   ============================================ */

/* Large Desktop (1440px and above) */
@media (min-width: 1440px) {
    .hero-text h2 {
        font-size: 5rem;
    }
    
    .section-title {
        font-size: 3.5rem;
    }
}

/* Desktop and Laptop (1024px to 1439px) */
@media (max-width: 1439px) {
    .hero-img {
        margin-right: 5rem;
        width: 550px;
        height: 550px;
    }
}

@media (max-width: 1200px) {
    .hero-img {
        margin-right: 2rem;
        width: 500px;
        height: 500px;
    }
    
    .hero-text h2 {
        font-size: 3.5rem;
    }
}

/* Tablets (768px to 1023px) */
@media (max-width: 1023px) {
    header {
        padding: 15px 30px;
    }

    .hero-section {
        flex-direction: column;
        padding: 100px 30px 50px;
        gap: 40px;
        text-align: center;
    }

    .hero-text {
        width: 100%;
        align-items: center;
    }

    .hero-text h2 {
        font-size: 3rem;
    }

    .hero-text h3 {
        font-size: 2rem;
    }

    .hero-text p {
        font-size: 1.2rem;
    }

    .hero-img {
        width: 400px;
        height: 400px;
        margin: 0 auto;
    }

    section {
        padding: 80px 30px;
    }

    .section-title {
        font-size: 2.5rem;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .projects-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 25px;
    }

    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    }
}

/* Mobile Landscape and Small Tablets (576px to 767px) */
@media (max-width: 767px) {
    header {
        padding: 15px 20px;
    }

    header.scrolled {
        padding: 12px 20px;
    }

    h1 {
        font-size: 1.2rem;
    }

    .hamburger {
        display: flex;
    }

    nav {
        position: fixed;
        top: 60px;
        right: -100%;
        flex-direction: column;
        background: rgba(20, 19, 24, 0.98);
        width: 100%;
        padding: 30px;
        transition: right var(--transition-speed) ease;
        gap: 20px;
        height: calc(100vh - 60px);
        overflow-y: auto;
    }

    nav.active {
        right: 0;
    }

    nav a {
        font-size: 1.2rem;
    }

    .nav-btn {
        width: 100%;
        text-align: center;
    }

    .hero-section {
        padding: 90px 20px 40px;
        gap: 30px;
        min-height: auto;
    }

    .hero-text {
        width: 100%;
    }

    .hero-text p {
        font-size: 1.1rem;
    }

    .hero-text h2 {
        font-size: 2.5rem;
        margin: 10px 0 20px 0;
    }

    .hero-text h3 {
        font-size: 1.5rem;
    }

    .hero-btn {
        padding: 12px 30px;
        font-size: 1rem;
    }

    .hero-img {
        width: 280px;
        height: 280px;
    }

    section {
        padding: 60px 20px;
        min-height: auto;
    }

    .section-title {
        font-size: 2rem;
        margin-bottom: 30px;
    }

    .about-content {
        gap: 25px;
    }

    .about-image {
        height: 250px;
        font-size: 3rem;
    }

    .about-text {
        font-size: 1rem;
        line-height: 1.7;
    }

    .portfolio-nav {
        gap: 15px;
    }

    .portfolio-nav button {
        padding: 8px 20px;
        font-size: 0.9rem;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .project-image {
        height: 180px;
        font-size: 2.5rem;
    }

    .project-info {
        padding: 20px;
    }

    .project-info h3 {
        font-size: 1.3rem;
    }

    .view-all-btn {
        padding: 12px 35px;
        font-size: 1rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .service-card {
        padding: 30px 20px;
    }

    .service-icon {
        font-size: 2.5rem;
    }

    .service-card h3 {
        font-size: 1.3rem;
    }

    .contact-container {
        padding: 30px 20px;
    }

    .form-group input,
    .form-group textarea {
        padding: 12px;
    }

    .submit-btn {
        padding: 12px;
        font-size: 1rem;
    }
}

/* Small Mobile (up to 575px) */
@media (max-width: 575px) {
    h1 {
        font-size: 1rem;
        letter-spacing: 1px;
    }

    .hero-text h2 {
        font-size: 2rem;
    }

    .hero-text h3 {
        font-size: 1.25rem;
    }

    .hero-text p {
        font-size: 1rem;
    }

    .hero-img {
        width: 240px;
        height: 240px;
    }

    .section-title {
        font-size: 1.75rem;
        letter-spacing: 2px;
    }

    .about-image {
        height: 200px;
        font-size: 2.5rem;
    }

    .project-image {
        height: 160px;
    }

    .service-icon {
        font-size: 2rem;
    }
}

/* Very Small Mobile (up to 374px) */
@media (max-width: 374px) {
    header {
        padding: 12px 15px;
    }

    h1 {
        font-size: 0.9rem;
    }

    .hero-section {
        padding: 80px 15px 30px;
    }

    .hero-text h2 {
        font-size: 1.75rem;
    }

    .hero-text h3 {
        font-size: 1rem;
    }

    .hero-img {
        width: 200px;
        height: 200px;
    }

    section {
        padding: 50px 15px;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .contact-container {
        padding: 25px 15px;
    }
}

/* Print Styles for Professional PDF Export */
@media print {
    body {
        background: white;
        color: black;
    }

    header {
        position: relative;
        background: white;
        color: black;
    }

    .hamburger,
    .nav-btn,
    .hero-btn,
    .submit-btn {
        display: none;
    }

    section {
        page-break-inside: avoid;
        min-height: auto;
    }

    .hero-section {
        padding-top: 20px;
    }
}